From 7c3a0a4f09c81558918b66deeafa486234a73294 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 20 Oct 2022 11:07:19 -0300 Subject: Fix all ShellCheck warnings IOW, `make check-shellcheck` passes. --- bin/bins | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin/bins') diff --git a/bin/bins b/bin/bins index 28e92f1..710cf8a 100755 --- a/bin/bins +++ b/bin/bins @@ -64,8 +64,10 @@ shift $((OPTIND- 1)) F="$XDG_CACHE_HOME/euandreh/bins" IFS=: +# Word-splitting is the goal: +# shellcheck disable=2086 if stest -rdq -n "$F" $PATH; then - trap "rm -f $F-tmp" EXIT + trap 'rm -f $F-tmp' EXIT stest -lxf $PATH | sort -u > "$F"-tmp mv "$F"-tmp "$F" fi -- cgit v1.2.3