From 799b3f2c4385cf89af09942a53d69658f2baf4a9 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Mon, 14 Nov 2022 22:16:13 -0700 Subject: hstow: reflow/tweak to consistently use fill column of 72 --- bin/hstow | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bin/hstow') 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 -- cgit v1.2.3