1
0
mirror of https://github.com/kedarvj/mysqldumpsplitter.git synced 2025-08-21 23:56:08 +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 ## Parse Extract Operation
case $EXTRACT in 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}" * ) echo "${txtred}ERROR:Wrong option for --extract.${txtrst}"
usage; usage;
esac; esac;