We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1716618 commit 6feec24Copy full SHA for 6feec24
gh-md-toc
@@ -177,11 +177,11 @@ gh_toc(){
177
sed -i "/${ts}/r ${toc_path}" "$gh_src"
178
fi
179
echo
180
- if [ $no_backup = "yes" ]; then
+ if [ "${no_backup}" = "yes" ]; then
181
rm ${toc_path} ${gh_src}${ext}
182
183
echo "!! TOC was added into: '$gh_src'"
184
- if [ -z $no_backup ]; then
+ if [ -z "${no_backup}" ]; then
185
echo "!! Origin version of the file: '${gh_src}${ext}'"
186
echo "!! TOC added into a separate file: '${toc_path}'"
187
0 commit comments