From 58d458942dacc0063ffcf2c7705685dd79398d4c Mon Sep 17 00:00:00 2001 From: Kedar Date: Sun, 23 Jul 2017 18:00:46 +0530 Subject: [PATCH] Fixed issue 2 (--source must be first argument) https://github.com/kedarvj/mysqldumpsplitter/issues/2 --- mysqldumpsplitter.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mysqldumpsplitter.sh b/mysqldumpsplitter.sh index 05d246b..838046d 100644 --- a/mysqldumpsplitter.sh +++ b/mysqldumpsplitter.sh @@ -94,6 +94,8 @@ parse_result() ## Validate SOURCE is provided and exists if [ -z $SOURCE ]; then 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 echo "${txtred}ERROR: Source file does not exist. (Entered: $SOURCE)${txtrst}" exit 2;