mirror of
https://github.com/AlbrechtL/openwrt-docker.git
synced 2026-10-15 00:01:23 +00:00
fix: Strip query parameters from filename (#350)
This commit is contained in:
@@ -20,6 +20,8 @@ if [ -z "$BOOT" ]; then
|
||||
fi
|
||||
|
||||
BASE=$(basename "$BOOT")
|
||||
BASE="${BASE%%\?*}"
|
||||
|
||||
[ -f "$STORAGE/$BASE" ] && return 0
|
||||
|
||||
TMP="$STORAGE/${BASE%.*}.tmp"
|
||||
|
||||
Reference in New Issue
Block a user