From 560d0beac7c4234055465778a163d5dc3c5f833d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Misty=20De=20M=C3=A9o?= Date: Fri, 31 Mar 2023 12:54:30 -0700 Subject: [PATCH] Pill 20: allow wrapped hello to be executed As written, this produces a script without the execute bit set, which may confuse users who want to try actually running it after building. --- pills/20/three-hellos.nix | 1 + pills/20/two-hellos.nix | 1 + 2 files changed, 2 insertions(+) diff --git a/pills/20/three-hellos.nix b/pills/20/three-hellos.nix index e103caf..cc9545b 100644 --- a/pills/20/three-hellos.nix +++ b/pills/20/three-hellos.nix @@ -36,6 +36,7 @@ let mkdir -p "$out/bin" echo "#! ${stdenv.shell}" >> "$out/bin/hello" echo "exec $(which hello)" >> "$out/bin/hello" + chmod 0755 "$out/bin/hello" ''; }; diff --git a/pills/20/two-hellos.nix b/pills/20/two-hellos.nix index d660fc6..f1e7c97 100644 --- a/pills/20/two-hellos.nix +++ b/pills/20/two-hellos.nix @@ -24,6 +24,7 @@ let mkdir -p "$out/bin" echo "#! ${stdenv.shell}" >> "$out/bin/hello" echo "exec $(which hello)" >> "$out/bin/hello" + chmod 0755 "$out/bin/hello" ''; };