Skip to content
Snippets Groups Projects
Commit c6cbbfe3 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

Check if the created dump contains "insert"

parent 7becf8f7
Branches
No related tags found
1 merge request!56Check if the created dump contains "insert"
......@@ -93,7 +93,7 @@ function mysql.db.dump(){
"$_dbname" 2>&1
fetchrc >/dev/null
zgrep -i "INSERT" "$_dumpfile" >/dev/null
zgrep -iE "(CREATE|INSERT)" "$_dumpfile" >/dev/null
typeset -i local _rc2=$?
test $_rc2 -ne 0 && echo "ERROR: the dump does not contain an insert statement."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment