treewide: set shebang for bash scripts

These scripts previously failed when called with syscalls like
`execve` (used by, e.g., Python's `subprocess.run`) that use no default
interpreter for scripts without a shebang.
This commit is contained in:
Erik Arvstedt 2022-11-08 22:45:19 +01:00
parent a576fa3afe
commit 0447c5bacb
No known key found for this signature in database
GPG key ID: 33312B944DD97846
7 changed files with 8 additions and 8 deletions

View file

@ -145,14 +145,14 @@ let
};
cli = mkOption {
readOnly = true;
default = pkgs.writeScriptBin "elements-cli" ''
default = pkgs.writers.writeBashBin "elements-cli" ''
${nbPkgs.elementsd}/bin/elements-cli -datadir='${cfg.dataDir}' "$@"
'';
defaultText = "(See source)";
description = "Binary to connect with the liquidd instance.";
};
swapCli = mkOption {
default = pkgs.writeScriptBin "liquidswap-cli" ''
default = pkgs.writers.writeBashBin "liquidswap-cli" ''
${nbPkgs.liquid-swap}/bin/liquidswap-cli -c '${cfg.dataDir}/elements.conf' "$@"
'';
defaultText = "(See source)";