From 423f4563bf96a0bf5e990291bcdcbe9ead9af0ce Mon Sep 17 00:00:00 2001 From: Thierry Volpiatto Date: Sun, 2 Aug 2020 12:30:08 +0200 Subject: Use ls and awk in emacs-helm.sh Seems more portable than find. find -printf at least is not supported on MacOS. --- emacs-helm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'emacs-helm.sh') diff --git a/emacs-helm.sh b/emacs-helm.sh index 61204abf..5f9afc96 100755 --- a/emacs-helm.sh +++ b/emacs-helm.sh @@ -139,7 +139,7 @@ cd "${0%/*}" || exit 1 # Check if autoload file exists. # It may be in a different directory if emacs-helm.sh is a symlink. -TRUENAME=$(find . -samefile "$0" -printf "%l") +TRUENAME=$(ls -l "$0" | awk '{print $11}') if [ ! -z "$TRUENAME" ]; then AUTO_FILE="${TRUENAME%/*}/helm-autoloads.el" else -- cgit v1.2.3