From 066bcc649f175fc69b0e5476881618cf5b2b973a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 11 Oct 2022 02:25:41 +0200 Subject: Fix silly mistakes. --- hugo-authentication.lua | 4 ++-- 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
$(cat -)
-- cgit v1.2.3