From 0fc9b6be91be69c2d0abe6b272aa062ac0d297ee Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 29 Aug 2018 23:01:59 +0200 Subject: [PATCH] Improve patch-macos wrapper script Reported to produce better results. --- core/core-cli.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core-cli.el b/core/core-cli.el index 8a9fd717b..3865a0829 100644 --- a/core/core-cli.el +++ b/core/core-cli.el @@ -391,10 +391,10 @@ packages and regenerates the autoloads file." (unless (file-exists-p newbin) (error "Failed to copy %s to %s" oldbin newbin)) (with-temp-buffer - (insert "#!/usr/bin/env bash\n" + (insert "#!/bin/bash\n" "args=\"$@\"\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) (chmod oldbin (file-modes newbin))) (message "%s successfully patched" appdir)))))