mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 21:40:01 +08:00
Shellchecks
This commit is contained in:
parent
a158572279
commit
ca69cf511d
@ -2,7 +2,7 @@
|
|||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
IMG="/storage"
|
IMG="/storage"
|
||||||
BASE=$(basename $URL .pat)
|
BASE=$(basename "$URL" .pat)
|
||||||
|
|
||||||
[ ! -f "/run/server.sh" ] && echo "Script must run inside Docker container!" && exit 60
|
[ ! -f "/run/server.sh" ] && echo "Script must run inside Docker container!" && exit 60
|
||||||
|
|
||||||
|
2
run.sh
2
run.sh
@ -10,7 +10,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
IMG="/storage"
|
IMG="/storage"
|
||||||
BASE=$(basename $URL .pat)
|
BASE=$(basename "$URL" .pat)
|
||||||
|
|
||||||
FILE="$IMG/$BASE.boot.img"
|
FILE="$IMG/$BASE.boot.img"
|
||||||
[ ! -f "$FILE" ] && echo "ERROR: Synology DSM boot-image does not exist ($FILE)" && exit 81
|
[ ! -f "$FILE" ] && echo "ERROR: Synology DSM boot-image does not exist ($FILE)" && exit 81
|
||||||
|
Loading…
x
Reference in New Issue
Block a user