mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2026-08-29 12:17:07 +00:00
fix: Size comparison variables (#1135)
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user