Skip to content

Commit 6bcc6f7

Browse files
authored
Merge pull request #132 from qq88976321/fix-indent-argument-parsing
Fix #131: --indent argument makes the script crashed
2 parents a261661 + 5e477fd commit 6bcc6f7

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
@@ -349,7 +349,7 @@ gh_toc_app() {
349349

350350
if [ "$1" = '--indent' ]; then
351351
indent="$2"
352-
shift
352+
shift 2
353353
fi
354354

355355
if [ "$1" = "-" ]; then

0 commit comments

Comments
 (0)