diff --git a/install-wings.sh b/install-wings.sh index 9ff0adc..441bbae 100644 --- a/install-wings.sh +++ b/install-wings.sh @@ -161,7 +161,7 @@ cat << "EOF" \____\__,_|_|\__,_|\__, |\___/| .__/ \__,_|___/ |___/ |_| - Calagopus Wings Installer | v1.2 + Calagopus Wings Installer | v1.3 EOF @@ -251,9 +251,13 @@ extract_join_data() { # Strip a single layer of surrounding single or double quotes, if present. out="$(printf '%s' "$out" | sed -E "s/^['\"]//; s/['\"]\$//")" - # In case the command was pasted with trailing shell noise (e.g. a - # trailing backslash/newline continuation), just take the first token. - out="$(printf '%s' "$out" | awk '{print $1}')" + # The join-data token is base64 and never legitimately contains whitespace. + # Strip EVERY whitespace character, not just the first token: a paste can + # get hard-wrapped across multiple lines (long tokens wrapped by a terminal + # or the panel's UI, or CRLF line endings), which previously left the token + # silently truncated at the first space/newline (via `awk '{print $1}'`) + # even when the raw input still contained the rest of it. + out="$(printf '%s' "$out" | tr -d '[:space:]')" printf '%s' "$out" }