diff --git a/src/install.sh b/src/install.sh index f23bc22..f245745 100644 --- a/src/install.sh +++ b/src/install.sh @@ -21,7 +21,9 @@ fi BASE=$(basename "$BOOT") BASE="${BASE%%\?*}" - +: "${BASE//+/ }"; printf -v BASE '%b' "${_//%/\\x}" +BASE=$(echo "$BASE" | sed -e 's/[^A-Za-z0-9._-]/_/g') + [ -f "$STORAGE/$BASE" ] && return 0 TMP="$STORAGE/${BASE%.*}.tmp"