fix: Undeclared variable in ConvertDisk (#1147)

This commit is contained in:
Kroese
2026-05-16 10:11:37 +02:00
committed by GitHub
parent 7753e4ac74
commit 41fc0a6a10
+4 -2
View File
@@ -269,12 +269,14 @@ convertDisk() {
local TMP_FILE="$DISK_BASE.tmp"
rm -f "$TMP_FILE"
local DIR
DIR=$(dirname "$TMP_FILE")
if [[ "$ALLOCATE" != [Nn]* ]]; then
local DIR CUR_SIZE SPACE GB
local CUR_SIZE SPACE GB
# Check free diskspace
DIR=$(dirname "$TMP_FILE")
CUR_SIZE=$(getSize "$SOURCE_FILE")
SPACE=$(df --output=avail -B 1 "$DIR" | tail -n 1)