diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2022-11-14 22:16:13 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2022-11-15 09:14:05 -0700 |
commit | 799b3f2c4385cf89af09942a53d69658f2baf4a9 (patch) | |
tree | 26b461ab26c889bfe031aec0f9aac3f148dff3fe /bin/hstow | |
parent | b044dff9a915bbdea44b76dfdbc1c33b1e4414e0 (diff) | |
download | dotfiles-799b3f2c4385cf89af09942a53d69658f2baf4a9.tar.gz |
hstow: reflow/tweak to consistently use fill column of 72
Diffstat (limited to 'bin/hstow')
-rwxr-xr-x | bin/hstow | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |