Skip to content

Commit a0617d2

Browse files
committed
fix: use variable template sub for printf.
Don't use $1 inside printf string. Courtesy of https://www.shellcheck.net/
1 parent 87a4075 commit a0617d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/Docker/roundup_start

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ for tracker_spec in "$@"; do
7878
anydbm|sqlite)
7979
backend="$arg";;
8080
postgres|mysql)
81-
printf "demo mode only supports sqlite or anydbm backends, not $1. Exiting."
81+
printf "demo mode only supports sqlite or anydbm backends, not %s. Exiting." "$1"
8282
exit 1;;
8383
nuke)
8484
nuke="$arg";;
85-
*) printf "Unknown argument $1.\n"
85+
*) printf "Unknown argument %s.\n" "$1"
8686
printf "Usage: demo [template] [db]\n"
8787
printf " template: one of "
8888
printf "classic devel jinja2 minimal responsive\n"

0 commit comments

Comments
 (0)