Fixed SC2007: Use $((..)) instead of deprecated $[..].

This commit is contained in:
Teal Dulcet 2023-12-21 08:10:35 -08:00 committed by Joshua Tauberer
parent 27cf11d8ec
commit 2afd0451c1
1 changed files with 1 additions and 1 deletions

View File

@ -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