From 2afd0451c13a03bb84fc947cacf8f1929c1d6006 Mon Sep 17 00:00:00 2001 From: Teal Dulcet Date: Thu, 21 Dec 2023 08:10:35 -0800 Subject: [PATCH] Fixed SC2007: Use $((..)) instead of deprecated $[..]. --- setup/system.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/system.sh b/setup/system.sh index b49f0120..cc543e79 100755 --- a/setup/system.sh +++ b/setup/system.sh @@ -61,7 +61,7 @@ then # Allocate and activate the swap file. Allocate in 1KB chuncks # doing it in one go, could fail on low memory systems - dd if=/dev/zero of=/swapfile bs=1024 count=$[1024*1024] status=none + dd if=/dev/zero of=/swapfile bs=1024 count=$((1024*1024)) status=none if [ -e /swapfile ]; then chmod 600 /swapfile hide_output mkswap /swapfile