fix: Size comparison variables (#1135)

This commit is contained in:
Kroese
2026-05-10 17:16:20 +02:00
committed by GitHub
parent 686e64da3f
commit 48de7dd00b
+2 -2
View File
@@ -640,7 +640,7 @@ if [ ! -f "$DISK2_FILE.img" ]; then
if [[ -f "$DISK1_FILE.img" && -f "$FALLBACK" ]]; then
SIZE1=$(stat -c%s "$FALLBACK")
SIZE2=$(stat -c%s "$DISK1_FILE.img")
if [[ SIZE1 -ne SIZE2 ]]; then
if [[ $SIZE1 -ne $SIZE2 ]]; then
mv "$FALLBACK" "$DISK2_FILE.img"
fi
fi
@@ -653,7 +653,7 @@ if [ ! -f "$DISK3_FILE.img" ]; then
if [[ -f "$DISK1_FILE.img" && -f "$FALLBACK" ]]; then
SIZE1=$(stat -c%s "$FALLBACK")
SIZE2=$(stat -c%s "$DISK1_FILE.img")
if [[ SIZE1 -ne SIZE2 ]]; then
if [[ $SIZE1 -ne $SIZE2 ]]; then
mv "$FALLBACK" "$DISK3_FILE.img"
fi
fi