1
0
mirror of https://github.com/kedarvj/mysqldumpsplitter.git synced 2025-08-21 15:52:00 +02:00

Version 3

Complete Rewrite.
Error handling.
This commit is contained in:
kedarvj
2015-03-02 16:56:01 +05:30
parent 7f62e40fef
commit 3559e05cab

View File

@@ -74,7 +74,13 @@ parse_result()
## Parse Extract Operation
case $EXTRACT in
DB|TABLE|ALLDBS|ALLTABLES|REGEXP ) ;;
ALLDBS|ALLTABLES|REGEXP ) ;;
DB|TABLE|REGEXP)
if [ "$OBJECT_NAME" = '' ]; then
echo "${txtred}ERROR: Expecting input for option --match_string.${txtrst}"
exit 1;
fi;
;;
* ) echo "${txtred}ERROR:Wrong option for --extract.${txtrst}"
usage;
esac;