Improve patch-macos wrapper script
Reported to produce better results.
This commit is contained in:
parent
48948f725f
commit
0fc9b6be91
1 changed files with 2 additions and 2 deletions
|
@ -391,10 +391,10 @@ packages and regenerates the autoloads file."
|
||||||
(unless (file-exists-p newbin)
|
(unless (file-exists-p newbin)
|
||||||
(error "Failed to copy %s to %s" oldbin newbin))
|
(error "Failed to copy %s to %s" oldbin newbin))
|
||||||
(with-temp-buffer
|
(with-temp-buffer
|
||||||
(insert "#!/usr/bin/env bash\n"
|
(insert "#!/bin/bash\n"
|
||||||
"args=\"$@\"\n"
|
"args=\"$@\"\n"
|
||||||
"pwd=\"$(cd \"$(dirname \"${BASH_SOURCE[0]}\")\"; pwd -P)\"\n"
|
"pwd=\"$(cd \"$(dirname \"${BASH_SOURCE[0]}\")\"; pwd -P)\"\n"
|
||||||
"exec \"$SHELL\" -c \"$pwd/RunEmacs $args\"")
|
"exec \"$SHELL\" -l -c \"$pwd/RunEmacs $args\"")
|
||||||
(write-file oldbin)
|
(write-file oldbin)
|
||||||
(chmod oldbin (file-modes newbin)))
|
(chmod oldbin (file-modes newbin)))
|
||||||
(message "%s successfully patched" appdir)))))
|
(message "%s successfully patched" appdir)))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue