list params on one line in printf

This commit is contained in:
Asif Bacchus 2020-11-28 07:51:08 -07:00
parent aba9cee905
commit 89d6544c30

View File

@ -164,13 +164,13 @@ printf "(mySQL root password: %s)\n\n" "$MYSQL_ROOT_PASSWORD"
case "$1" in case "$1" in
-*) -*)
# param starts with '-' --> assume mysqld parameter(s) and append to CMD # param starts with '-' --> assume mysqld parameter(s) and append to CMD
set -- /usr/bin/mysqld --user=mysql --console "$@" set -- /usr/bin/mysqld --user=mysql --console "$*"
printf "\nExecuting: %s\n" "$*" printf "\nExecuting: %s\n" "$*"
exec "$@" exec "$@"
;; ;;
*) *)
# param does NOT start with '-' --> execute as given # param does NOT start with '-' --> execute as given
printf "\nExecuting: %s\n" "$@" printf "\nExecuting: %s\n" "$*"
exec "$@" exec "$@"
;; ;;
esac esac