summaryrefslogtreecommitdiff
path: root/emacs-helm.sh
diff options
context:
space:
mode:
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