summaryrefslogtreecommitdiff
path: root/bin/hstow
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-11-14 10:44:25 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-11-14 22:07:46 -0700
commitb044dff9a915bbdea44b76dfdbc1c33b1e4414e0 (patch)
tree323107e7367a40101699888f69b9f0eb51ff50fe /bin/hstow
parentaf51771de201d07b833dee29db9487c5a4efa5d3 (diff)
downloaddotfiles-b044dff9a915bbdea44b76dfdbc1c33b1e4414e0.tar.gz
hstow: escape literal .
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 8fbec796..b2615786 100755
--- a/bin/hstow
+++ b/bin/hstow
@@ -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