shellcheck: prevent globbing and word splitting in unit shell scripts
This commit is contained in:
parent
4e63301ac3
commit
ee15837244
3 changed files with 23 additions and 21 deletions
|
|
@ -281,9 +281,9 @@ let
|
|||
systemd.services.bitcoind.postStart = mkAfter ''
|
||||
cli=${config.services.bitcoind.cli}/bin/bitcoin-cli
|
||||
if ! $cli listwallets | ${pkgs.jq}/bin/jq -e 'index("test")'; then
|
||||
$cli -named createwallet wallet_name=test load_on_startup=true
|
||||
"$cli" -named createwallet wallet_name=test load_on_startup=true
|
||||
address=$($cli -rpcwallet=test getnewaddress)
|
||||
$cli generatetoaddress ${toString config.test.data.num_blocks} $address
|
||||
"$cli" generatetoaddress ${toString config.test.data.num_blocks} "$address"
|
||||
fi
|
||||
'';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue