fix: Strip query parameters from filename

This commit is contained in:
Kroese 2024-01-19 02:45:46 +01:00 committed by GitHub
parent 3f3a3332ed
commit 8b93ea2fb5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -58,6 +58,8 @@ if [ ! -f "$STORAGE/custom.iso" ]; then
else
BASE=$(basename "$VERSION")
BASE="${BASE%%\?*}"
if [ ! -f "$STORAGE/$BASE" ]; then
MSG="Please wait while '$BASE' is being downloaded..."
fi
@ -78,6 +80,7 @@ if [[ "$EXTERNAL" != [Yy1]* ]]; then
else
BASE=$(basename "$VERSION")
BASE="${BASE%%\?*}"
fi