fix shebang for macos patch
This commit is contained in:
parent
5a380e9db2
commit
2631ca90d9
1 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ This patch fixes this by patching Emacs.app (in /Applications or
|
|||
1. Move Contents/MacOS/Emacs to Contents/MacOS/RunEmacs
|
||||
2. And replace Contents/MacOS/Emacs with the following wrapper script:
|
||||
|
||||
#!/bin/bash
|
||||
#!/user/bin/env bash
|
||||
args=\"$@\"
|
||||
pwd=\"$(cd \"$(dirname \"${BASH_SOURCE[0]}\")\"; pwd -P)\"
|
||||
exec \"$SHELL\" -l -c \"$pwd/RunEmacs $args\"
|
||||
|
@ -79,7 +79,7 @@ depending on your shell configuration and isn't always reliable.")
|
|||
(unless (file-exists-p newbin)
|
||||
(error "Failed to copy %s to %s" oldbin newbin))
|
||||
(with-temp-buffer
|
||||
(insert "#!/bin/bash\n"
|
||||
(insert "#!/usr/bin/env bash\n"
|
||||
"args=\"$@\"\n"
|
||||
"pwd=\"$(cd \"$(dirname \"${BASH_SOURCE[0]}\")\"; pwd -P)\"\n"
|
||||
"exec \"$SHELL\" -l -c \"$pwd/RunEmacs $args\"")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue