From 1d767c0bdd6476a4ba9a998b8953ec8b9ad9f21c Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Wed, 10 Mar 2021 17:05:04 +0100 Subject: Have find look in the current directory explicitly This will squash shellcheck's SC2184 [1]. [1] https://github.com/koalaman/shellcheck/wiki/SC2185 --- bosun | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bosun b/bosun index c24584f..37dd43e 100755 --- a/bosun +++ b/bosun @@ -66,7 +66,7 @@ list_active() { # XXX: GNU extensions: -print0 for find, -r -0 for xargs # XXX: GNU only: realpath - find -type l -print0 2>/dev/null \ + find . -type l -print0 2>/dev/null \ | xargs -r0 realpath -e --relative-base "$real" 2>/dev/null \ | sed '/^\//d' | cut -d/ -f1 | sort -u } -- cgit v1.2.3-2-gb3c3