diff --git a/build.sh b/build.sh index ec5acf5f..b2cb96e4 100755 --- a/build.sh +++ b/build.sh @@ -17,8 +17,6 @@ usage () printf ' -v: increase verbosity\n' } -printf 'Script arguments: %s\n' "$@" - if ! args=$(getopt 'c:d:f:pr:s:t:v' "$@"); then usage && exit 1 fi @@ -26,6 +24,8 @@ fi # shellcheck disable=SC2086 set -- $args +printf 'Script arguments: %s\n' "$args" + create_freeze= directory=. pandoc_commit=main @@ -34,6 +34,10 @@ stack=static target=${stack}-${repo} verbosity=0 +### Actions +action=${1} +shift + while true; do case "$1" in (-c) @@ -76,10 +80,6 @@ while true; do esac done -### Actions -action=${1} -shift - pandoc_version=${pandoc_commit} if [ "$pandoc_commit" = "main" ]; then pandoc_version=edge