fix: Strip query parameters from filename (#350)

This commit is contained in:
Kroese
2024-01-19 02:52:54 +01:00
committed by GitHub
parent b52c8d8a2a
commit ceba754d75
+2
View File
@@ -20,6 +20,8 @@ if [ -z "$BOOT" ]; then
fi
BASE=$(basename "$BOOT")
BASE="${BASE%%\?*}"
[ -f "$STORAGE/$BASE" ] && return 0
TMP="$STORAGE/${BASE%.*}.tmp"