Blob Blame History Raw
Error: SHELLCHECK_WARNING:
/usr/bin/mysql_install_db:431:10: warning: Remove backticks to avoid executing output. [SC2092]
#  429|     if test ! -d "$dir"
#  430|     then
#  431|->     if ! `mkdir -p "$dir"`
#  432|       then
#  433|         echo "Fatal error Can't create database directory '$dir'"
--- mariadb-10.3.10/scripts/mysql_install_db.sh	2018-10-02 11:45:42.000000000 +0200
+++ mariadb-10.3.10/scripts/mysql_install_db.sh_patched	2018-11-14 10:06:54.868469138 +0100
@@ -428,7 +428,7 @@ for dir in "$ldata" "$ldata/mysql"
 do
   if test ! -d "$dir"
   then
-    if ! `mkdir -p "$dir"`
+    if ! mkdir -p "$dir"
     then
       echo "Fatal error Can't create database directory '$dir'"
       link_to_help



Error: SHELLCHECK_WARNING:
/usr/bin/mysqld_safe:716:8: warning: Remove backticks to avoid executing output. [SC2092]
#  714|   if [ ! -d $mysql_unix_port_dir ]
#  715|   then
#  716|->   if ! `mkdir -p $mysql_unix_port_dir`
#  717|     then
#  718|       log_error "Fatal error Can't create database directory '$mysql_unix_port'"
--- mariadb-10.3.10/scripts/mysqld_safe.sh	2018-10-02 11:45:42.000000000 +0200
+++ mariadb-10.3.10/scripts/mysqld_safe.sh_patched	2018-11-14 10:10:45.325464636 +0100
@@ -713,7 +713,7 @@ safe_mysql_unix_port=${mysql_unix_port:-
 mysql_unix_port_dir=`dirname $safe_mysql_unix_port`
 if [ ! -d $mysql_unix_port_dir ]
 then
-  if ! `mkdir -p $mysql_unix_port_dir`
+  if ! mkdir -p $mysql_unix_port_dir
   then
     log_error "Fatal error Can't create database directory '$mysql_unix_port'"
     exit 1