partitioning: Declare rootpart as local variable

The others like `uefipart` and `bootpart` are also defined as local var. Establish consistency.
This commit is contained in:
ColorfulRhino
2024-07-28 23:14:22 +02:00
committed by Igor
parent 1092d60d3e
commit b8dbe607e5

View File

@@ -121,7 +121,7 @@ function prepare_partitions() {
fi
# Check if we need root partition
[[ $ROOTFS_TYPE != nfs ]] &&
rootpart=$((next++))
local rootpart=$((next++))
display_alert "calculated rootpart" "rootpart: ${rootpart}" "debug"