terminal-notifier: add shebang line to wrapper

Add shebang line to terminal-notifier to wrapper script. Without this line, the
script fails with "Exec format error" when called outside a shell (e.g. from
the Emacs alert package).
This commit is contained in:
Svend Sorensen 2017-07-18 12:22:53 -07:00 committed by Tuomas Tynkkynen
parent c71233f12c
commit db163cdc3b

View File

@ -17,6 +17,7 @@ stdenv.mkDerivation rec {
mkdir -p $out/bin
cp -r terminal-notifier.app $out/Applications
cat >$out/bin/terminal-notifier <<EOF
#!${stdenv.shell}
cd $out/Applications/terminal-notifier.app
exec ./Contents/MacOS/terminal-notifier "\$@"
EOF