From 9aefd659aa0e55f38d62c5de34656bfdc797b12d Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sun, 8 Jan 2023 00:14:51 -0600 Subject: Miscellaneous fixes --- vienna | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/vienna b/vienna index 4edbe11..19792f2 100755 --- a/vienna +++ b/vienna @@ -1,7 +1,7 @@ #!/bin/sh # vienna --- a tiny, tasty ssg # by C. Duckworth -# shellcheck disable=1090,2035 +# shellcheck disable=1090,2030,2031,2035 ### Entry point @@ -111,9 +111,8 @@ main() { yornp "Continue building? (y/N)" || exit 2 fi fi - # Further argument processing --- pre-build - preprocess "$@" || shift - ## Log configuration variables + log vienna config + # Log configuration variables log config domain: "$DOMAIN" log config workdir: "$WORKDIR" log config output: "$OUTDIR" @@ -156,11 +155,8 @@ preprocess() { case "${1:-ok}" in ok) ;; init) - log vienna initializing... shift - initialize "$@" - log vienna initialized. - exit + initialize "$@" # exit ;; clean) log vienna clean @@ -364,7 +360,6 @@ meta_init() { # meta_init FILE ## Extract metadata from FILE for later processing. # Metadata should exist as colon-separated data in HTML comments in the # input file. - metafile= m=false t=false while read -r line; do -- cgit 1.4.1-21-gabe81