fe4891c
Fix for:
fe4891c
/usr/bin/mysqld_safe: line 933: return: can only `return' from a function or sourced script
fe4891c
fe4891c
Upstream PR:
fe4891c
https://github.com/MariaDB/server/pull/1238
fe4891c
fe4891c
--- mariadb-10.3.12/scripts/mysqld_safe.sh	2019-01-04 16:28:49.000000000 +0100
fe4891c
+++ mariadb-10.3.12/scripts/mysqld_safe.sh_patched	2019-03-21 11:34:59.499309336 +0100
fe4891c
@@ -929,7 +929,7 @@ do
fe4891c
   cmd="$cmd "`shell_quote_string "$i"`
fe4891c
 done
fe4891c
 cmd="$cmd $args"
fe4891c
-[ $dry_run -eq 1 ] && return
fe4891c
+[ $dry_run -eq 1 ] && exit
fe4891c
 
fe4891c
 # Avoid 'nohup: ignoring input' warning
fe4891c
 test -n "$NOHUP_NICENESS" && cmd="$cmd < /dev/null"