mirror of
https://github.com/elitak/nixos-infect.git
synced 2024-12-23 00:28:28 +03: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() {
|
makeSwap() {
|
||||||
# TODO check currently available swapspace first
|
# 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))
|
dd if=/dev/zero "of=$swapFile" bs=1M count=$((1*1024))
|
||||||
chmod 0600 "$swapFile"
|
chmod 0600 "$swapFile"
|
||||||
mkswap "$swapFile"
|
mkswap "$swapFile"
|
||||||
|
|
Loading…
Reference in a new issue