Skip to content

Commit 20e8d60

Browse files
committed
rcup: Fix shell quoting in is_linked
This resulted in spurious "Replacing identical but unlinked ..." messages for destinations with spaces in their names, like macOS's `~/Library/Application Support` directory.
1 parent f1e5b2d commit 20e8d60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/rcup.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ is_linked() {
130130
local dest="$2"
131131

132132
if [ -h "$dest" ]; then
133-
local link_dest=$(readlink $dest)
133+
local link_dest=$(readlink "$dest")
134134
[ "$link_dest" = "$src" ]
135135
else
136136
return 1

0 commit comments

Comments
 (0)