summaryrefslogtreecommitdiff
path: root/bin/hstow
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2023-01-06 16:09:47 -0700
committerSean Whitton <spwhitton@spwhitton.name>2023-01-06 16:09:52 -0700
commit65f8f0c636c8f52c3fe5a4bc9330ab287463877b (patch)
tree8bfbbf6bc39f7325d98be10cb4323171bab7b361 /bin/hstow
parentf9465befbfbfc91d7a09239c2defd1e5f6497030 (diff)
downloaddotfiles-65f8f0c636c8f52c3fe5a4bc9330ab287463877b.tar.gz
hstow: hide stderr from main unstow find(1) invocation
Diffstat (limited to 'bin/hstow')
-rwxr-xr-xbin/hstow2
1 files changed, 1 insertions, 1 deletions
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"