SC2006: Use $(STATEMENT) instead of legacy `STATEMENT`

This commit is contained in:
zimbatm 2017-04-15 17:52:39 +01:00
parent 3bd6fe9352
commit 9c0a833bda
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ EOF
makeSwap() {
# TODO check currently available swapspace first
swapFile=`mktemp /tmp/nixos-infect.XXXXX.swp`
swapFile=$(mktemp /tmp/nixos-infect.XXXXX.swp)
dd if=/dev/zero "of=$swapFile" bs=1M count=$((1*1024))
chmod 0600 "$swapFile"
mkswap "$swapFile"