diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2023-01-17 10:50:36 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2023-01-17 10:51:00 -0700 |
commit | 5a4d307df01c0be830e92dac85d563889907ba2e (patch) | |
tree | 96148aa4d0cff61893af1a76d6e16a69dbbb2fc2 /bin/hstow | |
parent | 0591f1caca9187c32714b8b341f12fd49e901f01 (diff) | |
download | dotfiles-5a4d307df01c0be830e92dac85d563889907ba2e.tar.gz |
reflow
Diffstat (limited to 'bin/hstow')
-rwxr-xr-x | bin/hstow | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |