Shellchecks

This commit is contained in:
Kroese
2023-03-30 20:21:33 +02:00
parent e1810d3ba0
commit 447e483439
5 changed files with 28 additions and 28 deletions

View File

@@ -14,7 +14,7 @@ TMP="$IMG/tmp"
FILE="$TMP/dsm.pat"
rm -rf $TMP && mkdir -p $TMP
wget $URL -O $FILE -q --show-progress
wget "$URL" -O "$FILE" -q --show-progress
[ ! -f "$FILE" ] && echo "Download failed" && exit 61
@@ -48,8 +48,8 @@ BOOT=$(find $TMP -name "*.bin.zip")
[ ! -f "$BOOT" ] && echo "Invalid PAT file: boot file not found." && exit 67
BOOT=$(echo $BOOT | head -c -5)
unzip -q -o $BOOT.zip -d $TMP
BOOT=$(echo "$BOOT" | head -c -5)
unzip -q -o "$BOOT".zip -d $TMP
echo "Install: Extracting prepared disk image..."
@@ -94,8 +94,8 @@ fi
rm -rf $MOUNT
mv -f $BOOT $IMG/boot.img
mv -f $SYSTEM $IMG/system.img
mv -f $BOOT "$IMG"/boot.img
mv -f $SYSTEM "$IMG"/system.img
rm -rf $TMP