mirror of
https://github.com/NixOS/nix-pills
synced 2024-09-19 04:00:13 -04:00
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.
This commit is contained in:
parent
d5a77c7225
commit
560d0beac7
|
@ -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"
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
@ -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"
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue