From 65f8f0c636c8f52c3fe5a4bc9330ab287463877b Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Fri, 6 Jan 2023 16:09:47 -0700 Subject: hstow: hide stderr from main unstow find(1) invocation --- bin/hstow | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/hstow') diff --git a/bin/hstow b/bin/hstow index 5fb58a3a..c1302db6 100755 --- a/bin/hstow +++ b/bin/hstow @@ -140,7 +140,7 @@ unstow () { dir_pat=".$(echo $DIR | cut -c$(echo $HOME | wc -m | tr -d ' ')-)/" dirs_pat="$(echo "^($dir_pat$ignores)" | sed -e 's#\.#\\.#g')" - for file in $(find . -type l ! -name . ! -name "$cchars" \ + for file in $(find . -type l ! -name . ! -name "$cchars" 2>/dev/null \ | grep -Ev "$dirs_pat"); do if readlink "$file" | grep -Eq '^(\.\./)*\.STOW/'"$NAME/"; then rm "$file" -- cgit v1.2.3