Skip to content

Commit

Permalink
Update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
reijoh committed Mar 22, 2024
1 parent 9780b2f commit 5faf362
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ 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
# The variable is intentionally left unquoted.
# shellcheck disable=SC2086
set -- $args

printf 'Script arguments: %s\n' "$args"

create_freeze=
directory=.
pandoc_commit=main
Expand All @@ -34,6 +34,10 @@ stack=static
target=${stack}-${repo}
verbosity=0

### Actions
action=${1}
shift

while true; do
case "$1" in
(-c)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5faf362

Please sign in to comment.