diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2022-11-14 10:44:25 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2022-11-14 22:07:46 -0700 |
commit | b044dff9a915bbdea44b76dfdbc1c33b1e4414e0 (patch) | |
tree | 323107e7367a40101699888f69b9f0eb51ff50fe /bin/hstow | |
parent | af51771de201d07b833dee29db9487c5a4efa5d3 (diff) | |
download | dotfiles-b044dff9a915bbdea44b76dfdbc1c33b1e4414e0.tar.gz |
hstow: escape literal .
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 | tr -d ' ')-)/" + 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 |