Skip to content
Snippets Groups Projects
Commit 59fa8f8f authored by micah's avatar micah :speech_balloon:
Browse files

backslashes for the double quotes are necessary in the debug lines

otherwise when you run a test run it will print: debug su $user -c "$execstr"
instead of expanding those variables
the backslashes in the output= lines were wrong, but the debug lines
were necessary :)
parent 5158f256
Branches
Tags
No related merge requests found
...@@ -179,7 +179,7 @@ then ...@@ -179,7 +179,7 @@ then
else else
execstr="$MYSQLHOTCOPY --quiet --allowold --regexp /.\*/./.\*/ $hotdir" execstr="$MYSQLHOTCOPY --quiet --allowold --regexp /.\*/./.\*/ $hotdir"
fi fi
debug 'su $user -c "$execstr"' debug "su $user -c \"$execstr\""
if [ ! $test ] if [ ! $test ]
then then
output=`su $user -c "$execstr" 2>&1` output=`su $user -c "$execstr" 2>&1`
...@@ -202,7 +202,7 @@ then ...@@ -202,7 +202,7 @@ then
else else
execstr="$MYSQLHOTCOPY --allowold $db $hotdir" execstr="$MYSQLHOTCOPY --allowold $db $hotdir"
fi fi
debug 'su $user -c "$execstr"' debug 'su $user -c \"$execstr\"'
if [ ! $test ] if [ ! $test ]
then then
output=`su $user -c "$execstr" 2>&1` output=`su $user -c "$execstr" 2>&1`
...@@ -253,7 +253,7 @@ fi ...@@ -253,7 +253,7 @@ fi
else else
execstr="$MYSQLDUMP $defaultsfile --lock-tables --complete-insert --add-drop-table --quick --quote-names $ignore $db > $dumpdir/${db}.sql" execstr="$MYSQLDUMP $defaultsfile --lock-tables --complete-insert --add-drop-table --quick --quote-names $ignore $db > $dumpdir/${db}.sql"
fi fi
debug 'su $user -c "$execstr"' debug "su $user -c \"$execstr\""
if [ ! $test ] if [ ! $test ]
then then
output=`su $user -c "$execstr" 2>&1` output=`su $user -c "$execstr" 2>&1`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment