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

Fixed issue 2 (--source must be first argument)

https://github.com/kedarvj/mysqldumpsplitter/issues/2
This commit is contained in:
Kedar
2017-07-23 18:00:46 +05:30
committed by GitHub
parent fb1d77075f
commit 58d458942d

View File

@@ -94,6 +94,8 @@ parse_result()
## Validate SOURCE is provided and exists ## Validate SOURCE is provided and exists
if [ -z $SOURCE ]; then if [ -z $SOURCE ]; then
echo "${txtred}ERROR: Source file not specified or does not exist. (Entered: $SOURCE)${txtrst}" echo "${txtred}ERROR: Source file not specified or does not exist. (Entered: $SOURCE)${txtrst}"
echo "${txtgrn}* Make sure --source is first argument. ${txtrst}";
exit 2;
elif [ ! -f $SOURCE ]; then elif [ ! -f $SOURCE ]; then
echo "${txtred}ERROR: Source file does not exist. (Entered: $SOURCE)${txtrst}" echo "${txtred}ERROR: Source file does not exist. (Entered: $SOURCE)${txtrst}"
exit 2; exit 2;