summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2018-12-14 20:07:49 +0100
committertv <tv@krebsco.de>2018-12-14 20:07:49 +0100
commit943c6567fc90c3ac400fc336359b25cfebd0f1c6 (patch)
treee02b941d54dcc94f3989b2cb233d99299bb77650
parent78830f5ea78d23933f9a22acd680d954525873df (diff)
populate pass: set -efu
-rw-r--r--pkgs/populate/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/populate/default.nix b/pkgs/populate/default.nix
index dcb26b9..487f689 100644
--- a/pkgs/populate/default.nix
+++ b/pkgs/populate/default.nix
@@ -62,6 +62,8 @@ let
pop.pass = target: source: let
passPrefix = "${source.dir}/${source.name}";
in /* sh */ ''
+ set -efu
+
umask 0077
if test -e ${quote source.dir}/.git; then