diff --git a/src/install.sh b/src/install.sh index ce7872f..06f0761 100644 --- a/src/install.sh +++ b/src/install.sh @@ -60,8 +60,7 @@ if [ ! -f "$STORAGE/$BASE" ]; then else - BASE=$(basename "$VERSION") - BASE="${BASE%%\?*}" + BASE=$(basename "${VERSION%%\?*}") : "${BASE//+/ }"; printf -v BASE '%b' "${_//%/\\x}" BASE=$(echo "$BASE" | sed -e 's/[^A-Za-z0-9._-]/_/g')