properly parse multiple cmd parameters
This commit is contained in:
parent
89d6544c30
commit
c3a67f4c28
@ -164,7 +164,7 @@ 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 "$@"
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user