mirror of
https://github.com/elitak/nixos-infect.git
synced 2024-11-26 23:13:24 +03:00
SC2006: Use $(STATEMENT) instead of legacy STATEMENT
This commit is contained in:
parent
3bd6fe9352
commit
9c0a833bda
@ -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 New Issue
Block a user