summaryrefslogtreecommitdiff
path: root/emacs-helm.sh
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2020-08-02 12:30:08 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2020-08-02 12:30:08 +0200
commit423f4563bf96a0bf5e990291bcdcbe9ead9af0ce (patch)
tree6e308e195ad9f6944ef0acf7505c0b5948786464 /emacs-helm.sh
parentf683ba14a2a9d6a76e124ec6fda406debd3a4834 (diff)
Use ls and awk in emacs-helm.sh
Seems more portable than find. find -printf at least is not supported on MacOS.
Diffstat (limited to 'emacs-helm.sh')
-rwxr-xr-xemacs-helm.sh2
1 files changed, 1 insertions, 1 deletions
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