Skip to content

Commit

Permalink
partitioning: Declare rootpart as local variable
Browse files Browse the repository at this point in the history
The others like `uefipart` and `bootpart` are also defined as local var. Establish consistency.
  • Loading branch information
ColorfulRhino authored and igorpecovnik committed Aug 5, 2024
1 parent 1092d60 commit b8dbe60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/functions/image/partitioning.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit b8dbe60

Please sign in to comment.