mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
armbian-next: shellcheck: squash a bunch of 'critical' warnings
This commit is contained in:
@@ -102,7 +102,8 @@ function prepare_partitions() {
|
||||
display_alert "calculated rootpart" "rootpart: ${rootpart}" "debug"
|
||||
|
||||
# stage: calculate rootfs size
|
||||
export rootfs_size=$(du -sm $SDCARD/ | cut -f1) # MiB
|
||||
declare -g -i rootfs_size
|
||||
rootfs_size=$(du -sm "${SDCARD}"/ | cut -f1) # MiB
|
||||
display_alert "Current rootfs size" "$rootfs_size MiB" "info"
|
||||
|
||||
call_extension_method "prepare_image_size" "config_prepare_image_size" <<- 'PREPARE_IMAGE_SIZE'
|
||||
|
||||
Reference in New Issue
Block a user