Skip to content

Commit

Permalink
Merge pull request #54 from Qualous/master
Browse files Browse the repository at this point in the history
 Correct BaseName Handling for Spaces in Path
  • Loading branch information
ekalinin authored May 14, 2019
2 parents d0d8ab0 + 9164aea commit 7d9865f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gh-md-toc
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,10 @@ gh_toc_get_filename() {
# Options hendlers
#
gh_toc_app() {
local app_name=$(basename $0)
local need_replace="no"

if [ "$1" = '--help' ] || [ $# -eq 0 ] ; then
local app_name=$(basename "$0")
echo "GitHub TOC generator ($app_name): $gh_toc_version"
echo ""
echo "Usage:"
Expand Down

0 comments on commit 7d9865f

Please sign in to comment.