properly parse multiple cmd parameters

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

View File

@ -164,7 +164,7 @@ printf "(mySQL root password: %s)\n\n" "$MYSQL_ROOT_PASSWORD"
case "$1" in
-*)
# 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" "$*"
exec "$@"
;;