diff --git a/install.sh b/install.sh index 0a65056..2d2b59f 100644 --- a/install.sh +++ b/install.sh @@ -2,7 +2,7 @@ set -eu IMG="/storage" -BASE=$(basename $URL .pat) +BASE=$(basename "$URL" .pat) [ ! -f "/run/server.sh" ] && echo "Script must run inside Docker container!" && exit 60 diff --git a/run.sh b/run.sh index 8bb642f..c218d09 100755 --- a/run.sh +++ b/run.sh @@ -10,7 +10,7 @@ else fi IMG="/storage" -BASE=$(basename $URL .pat) +BASE=$(basename "$URL" .pat) FILE="$IMG/$BASE.boot.img" [ ! -f "$FILE" ] && echo "ERROR: Synology DSM boot-image does not exist ($FILE)" && exit 81