diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2022-11-13 09:46:35 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2022-11-13 09:46:35 -0700 |
commit | f45323a276a39a3f52a9eb491d965a1d34a1be22 (patch) | |
tree | 2384570435fb797ea2c29416a08fdb8b5a531626 /bin/hstow | |
parent | 2889dbb40b5891309861d79d20e16288d7fa12a9 (diff) | |
download | dotfiles-f45323a276a39a3f52a9eb491d965a1d34a1be22.tar.gz |
hstow: strip leading whitespace from one case of output from wc(1)
Thanks to Mike Lee Williams for reporting the problem.
Diffstat (limited to 'bin/hstow')
-rwxr-xr-x | bin/hstow | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -131,7 +131,7 @@ stow () { unstow () { cd "$HOME" - dir_pat="^.$(echo $DIR | cut -c$(echo $HOME | wc -m)-)/" + dir_pat="^.$(echo $DIR | cut -c$(echo $HOME | wc -m | tr -d ' ')-)/" for file in $(find . -type l ! -name . ! -name "$cchars" \ | grep -v "$dir_pat"); do if readlink "$file" | grep -Eq '^(\.\./)*\.STOW/'"$NAME/"; then |