Skip to content

Commit

Permalink
Merge pull request #1 from Kedu-SCCL/fix-unbound-variable
Browse files Browse the repository at this point in the history
Update doctoc.sh
  • Loading branch information
keducoop authored May 13, 2021
2 parents 0299bcd + 779b8a5 commit bc3f2f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doctoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ toc() {
local level
local title
local anchor
local output
local output=""

while IFS='' read -r line || [[ -n "$line" ]]; do
level="$(echo "$line" | $SED -E 's/^(#+).*/\1/; s/#/ /g; s/^ //')"
Expand Down

0 comments on commit bc3f2f1

Please sign in to comment.