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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user