Skip to content
Snippets Groups Projects
Unverified Commit 561676e4 authored by Daniel's avatar Daniel
Browse files

ENH: More informative error message if mysqldump cannot be found.

parent 214c8acf
Branches
Tags
No related merge requests found
...@@ -131,6 +131,10 @@ function update_version { ...@@ -131,6 +131,10 @@ function update_version {
} }
function dump_table { function dump_table {
if [[ -z $MYSQLDUMP_CMD ]]; then
echo "Cannot find mysqldump program!" >&2
exit 2
fi
$MYSQLDUMP_CMD $(get_db_args_nodb) $DATABASE_NAME $1 \ $MYSQLDUMP_CMD $(get_db_args_nodb) $DATABASE_NAME $1 \
> ${DATABASE_NAME}.${1}.${OLD_VERSION}.dump.sql > ${DATABASE_NAME}.${1}.${OLD_VERSION}.dump.sql
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment