summaryrefslogtreecommitdiff
path: root/bin/hstow
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-11-14 22:16:13 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-11-15 09:14:05 -0700
commit799b3f2c4385cf89af09942a53d69658f2baf4a9 (patch)
tree26b461ab26c889bfe031aec0f9aac3f148dff3fe /bin/hstow
parentb044dff9a915bbdea44b76dfdbc1c33b1e4414e0 (diff)
downloaddotfiles-799b3f2c4385cf89af09942a53d69658f2baf4a9.tar.gz
hstow: reflow/tweak to consistently use fill column of 72
Diffstat (limited to 'bin/hstow')
-rwxr-xr-xbin/hstow10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/hstow b/bin/hstow
index b2615786..1c640425 100755
--- a/bin/hstow
+++ b/bin/hstow
@@ -91,8 +91,8 @@ stow () {
eval case "'$file_dir'" in "${ignores})" continue ";;" esac
fi
- rel="$(echo $file | sed -E 's#/dot[-.]([^/]+)#/.\1#g; s#^\./##')"
- dotdotslashes="$(echo $rel | sed -E 's#[^/]*$##; s#[^/]+#..#g')"
+ rel="$(echo $file|sed -E 's#/dot[-.]([^/]+)#/.\1#g; s#^\./##')"
+ dotdotslashes="$(echo $rel|sed -E 's#[^/]*$##; s#[^/]+#..#g')"
target="${dotdotslashes}.STOW/$NAME/$rel"
link="$HOME/$rel"
link_target=
@@ -113,9 +113,9 @@ stow () {
conflicts="$conflicts${tab}$file"
fi
elif [ -h "$link" ]; then
- # With at least GNU ln(1), passing -f, but not also -T, does not
- # replace an existing link in some cases.
- # -T is not POSIX, so we just remove any existing link first.
+ # With at least GNU ln(1), passing -f, but not also -T, does
+ # not replace an existing link in some cases.
+ # -T is not POSIX, so we remove any existing link first.
rm "$link"
ln -s "$target" "$link"
else