aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfgang Müller2021-03-10 17:05:04 +0100
committerWolfgang Müller2021-03-10 17:05:04 +0100
commit1d767c0bdd6476a4ba9a998b8953ec8b9ad9f21c (patch)
tree08a7d3bc1acb6dba67bfba9435c59926b9bbd535
parent366b5200155cb5a555af75864b386cb0e995901d (diff)
downloadbosun-1d767c0bdd6476a4ba9a998b8953ec8b9ad9f21c.tar.gz
Have find look in the current directory explicitly
This will squash shellcheck's SC2184 [1]. [1] https://github.com/koalaman/shellcheck/wiki/SC2185
Diffstat (limited to '')
-rwxr-xr-xbosun2
1 files changed, 1 insertions, 1 deletions
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
}