From 5a4d307df01c0be830e92dac85d563889907ba2e Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Tue, 17 Jan 2023 10:50:36 -0700 Subject: reflow --- bin/hstow | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'bin/hstow') diff --git a/bin/hstow b/bin/hstow index d263fac3..ff5ae181 100755 --- a/bin/hstow +++ b/bin/hstow @@ -139,9 +139,10 @@ 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 . ! \( -user "$(id -un)" -o -group "$(id -gn)" \) \ - -prune -o -type l ! -name . ! -name "$cchars" -print \ - | grep -Ev "$dirs_pat"); do + for file in \ + $(find . ! \( -user "$(id -un)" -o -group "$(id -gn)" \) \ + -prune -o -type l ! -name . ! -name "$cchars" -print \ + | grep -Ev "$dirs_pat"); do if readlink "$file" | grep -Eq '^(\.\./)*\.STOW/'"$NAME/"; then rm "$file" while true; do -- cgit v1.2.3