emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/helm 451ba2d625 3/3: Fix some shellcheck warnings


From: ELPA Syncer
Subject: [nongnu] elpa/helm 451ba2d625 3/3: Fix some shellcheck warnings
Date: Tue, 16 Aug 2022 06:58:36 -0400 (EDT)

branch: elpa/helm
commit 451ba2d62512ed9178391a04cd458c07840a5eeb
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@posteo.net>

    Fix some shellcheck warnings
---
 emacs-helm.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/emacs-helm.sh b/emacs-helm.sh
index 23bfdf7d58..cb7ecfdb52 100755
--- a/emacs-helm.sh
+++ b/emacs-helm.sh
@@ -139,8 +139,8 @@ cd "${0%/*}" || exit 1
 
 # Check if autoload file exists.
 # It may be in a different directory if emacs-helm.sh is a symlink.
-TRUENAME=$(ls -l "$0" | awk '{print $11}')
-if [ ! -z "$TRUENAME" ]; then
+TRUENAME=$(find "${0%/*}" -path "$0" -printf "%l")
+if [ -n "$TRUENAME" ]; then
     AUTO_FILE="${TRUENAME%/*}/helm-autoloads.el"
 else
     AUTO_FILE="helm-autoloads.el"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]