File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ searchfile() {
47
47
# Replace the old link with the new one.
48
48
# Parentheses are placed around both the old link and new one in order to ensure we replace the link,
49
49
# and not some other place in the file that happens to use the same words.
50
- REPLACE=$( escape ' (' $link ' )' )
50
+ REPLACE=$( escape ' (' " $link " ' )' )
51
51
REPLACEWITH=$( escapeReplace " $NEWLINK " )
52
52
sed -i " s/$REPLACE /\($REPLACEWITH \)/" " $1 "
53
53
fi
@@ -97,7 +97,7 @@ searchfile() {
97
97
# Replace the old link with the new one.
98
98
# Parentheses are placed around both the old link and new one in order to ensure we replace the link,
99
99
# and not some other place in the file that happens to use the same words.
100
- REPLACE=$( escape ' (' $link ' )' )
100
+ REPLACE=$( escape ' (' " $link " ' )' )
101
101
REPLACEWITH=$( escapeReplace " $( basename " $FILE " .md) " )
102
102
sed -i " s/$REPLACE /\($REPLACEWITH \)/" " $1 "
103
103
continue
You can’t perform that action at this time.
0 commit comments