From b8dbe607e59a9eb23c70f129b60e2df2b08cdb01 Mon Sep 17 00:00:00 2001 From: ColorfulRhino <131405023+ColorfulRhino@users.noreply.github.com> Date: Sun, 28 Jul 2024 23:14:22 +0200 Subject: [PATCH] partitioning: Declare `rootpart` as local variable The others like `uefipart` and `bootpart` are also defined as local var. Establish consistency. --- lib/functions/image/partitioning.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions/image/partitioning.sh b/lib/functions/image/partitioning.sh index 7126a34afb09..2abf26c4ff1a 100644 --- a/lib/functions/image/partitioning.sh +++ b/lib/functions/image/partitioning.sh @@ -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"