Skip to content

Commit 7d9865f

Browse files
authored
Merge pull request #54 from Qualous/master
Correct BaseName Handling for Spaces in Path
2 parents d0d8ab0 + 9164aea commit 7d9865f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gh-md-toc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,10 @@ gh_toc_get_filename() {
217217
# Options hendlers
218218
#
219219
gh_toc_app() {
220-
local app_name=$(basename $0)
221220
local need_replace="no"
222221

223222
if [ "$1" = '--help' ] || [ $# -eq 0 ] ; then
223+
local app_name=$(basename "$0")
224224
echo "GitHub TOC generator ($app_name): $gh_toc_version"
225225
echo ""
226226
echo "Usage:"

0 commit comments

Comments
 (0)