summaryrefslogtreecommitdiff
path: root/bin/hstow
diff options
context:
space:
mode:
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