Mercurial > p > roundup > code
diff scripts/Docker/roundup_start @ 7672:cf5d37182dc9
fix: use variable template sub for printf.
Don't use $1 inside printf string.
Courtesy of https://www.shellcheck.net/
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 24 Oct 2023 21:40:48 -0400 |
| parents | b31343f16153 |
| children | 08e87030f3a2 |
line wrap: on
line diff
--- a/scripts/Docker/roundup_start Tue Oct 24 09:32:06 2023 -0400 +++ b/scripts/Docker/roundup_start Tue Oct 24 21:40:48 2023 -0400 @@ -78,11 +78,11 @@ anydbm|sqlite) backend="$arg";; postgres|mysql) - printf "demo mode only supports sqlite or anydbm backends, not $1. Exiting." + printf "demo mode only supports sqlite or anydbm backends, not %s. Exiting." "$1" exit 1;; nuke) nuke="$arg";; - *) printf "Unknown argument $1.\n" + *) printf "Unknown argument %s.\n" "$1" printf "Usage: demo [template] [db]\n" printf " template: one of " printf "classic devel jinja2 minimal responsive\n"
