diff options
-rw-r--r-- | hugo-authentication.lua | 4 | ||||
-rwxr-xr-x | hugo-pre.sh | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/hugo-authentication.lua b/hugo-authentication.lua index 83a2c96..28343ef 100644 --- a/hugo-authentication.lua +++ b/hugo-authentication.lua @@ -24,8 +24,8 @@ local protected_repos = { } local public_repos = {} -public_repo_file = open('/usr/local/var/public-repos') -while data != nil do +public_repo_file = io.open('/usr/local/var/public-repos') +while data ~= nil do public_repos[data] = true data = public_repo_file:read() end diff --git a/hugo-pre.sh b/hugo-pre.sh index dfc4a9a..e089d1d 100755 --- a/hugo-pre.sh +++ b/hugo-pre.sh @@ -4,7 +4,7 @@ name=$1 case $name in *.md) pandoc -f gfm -t html ;; - *.wiki) pandoc -f vimwiki -t html --table-of-contents + *.wiki) pandoc -f vimwiki -t html --table-of-contents ;; *) cat <<- EOF <pre>$(cat -)</pre> |