Skip to content

Commit

Permalink
Merge pull request ekalinin#60 from dhellmann/fix-token-lookup-logic
Browse files Browse the repository at this point in the history
reverse the logic for handling GH_TOC_TOKEN to correct it
  • Loading branch information
ekalinin authored Feb 21, 2019
2 parents 0e25412 + 05c1c4d commit be4fbab
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 @@ -52,7 +52,7 @@ gh_toc_load() {
gh_toc_md2html() {
local gh_file_md=$1
URL=https://api.github.com/markdown/raw
if [ -z "$GH_TOC_TOKEN" ]; then
if [ ! -z "$GH_TOC_TOKEN" ]; then
TOKEN=$GH_TOC_TOKEN
else
TOKEN="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/token.txt"
Expand Down

0 comments on commit be4fbab

Please sign in to comment.