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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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"