mirror of
https://github.com/elitak/nixos-infect
synced 2024-11-22 11:13:08 +00:00
SC2006: Use $(STATEMENT) instead of legacy STATEMENT
This commit is contained in:
parent
3bd6fe9352
commit
9c0a833bda
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue