mirror of
https://github.com/kedarvj/mysqldumpsplitter.git
synced 2025-08-20 07:11:29 +02:00
Fixed issue 2 (--source must be first argument)
https://github.com/kedarvj/mysqldumpsplitter/issues/2
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user