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 23:04:56 +01:00
parent a576fa3afe
commit 0447c5bacb
7 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ let
description = "Extra lines appended to the configuration file.";
};
cli = mkOption {
default = pkgs.writeScriptBin "pool" ''
default = pkgs.writers.writeBashBin "pool" ''
exec ${cfg.package}/bin/pool \
--rpcserver ${nbLib.addressWithPort cfg.rpcAddress cfg.rpcPort} \
--network ${network} \