Skip to content
Snippets Groups Projects

Check if the created dump contains "insert"

Merged Hahn Axel (hahn) requested to merge update-localdump-to-classlike-functions into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -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."
Loading