This commit is contained in:
Kroese
2023-04-02 22:38:36 +02:00
parent fd1a950a58
commit ccd0a3fab8
3 changed files with 21 additions and 4 deletions
+1
View File
@@ -4,6 +4,7 @@ set -eu
IMG="/storage"
BASE=$(basename "$URL" .pat)
[ ! -d "$IMG" ] && echo "Storage folder (${IMG}) not found!" && exit 69
[ ! -f "/run/server.sh" ] && echo "Script must run inside Docker container!" && exit 60
[ ! -f "$IMG/$BASE.boot.img" ] && rm -f "$IMG"/"$BASE".system.img