mirror of
https://github.com/kedarvj/mysqldumpsplitter.git
synced 2025-08-20 23:31:25 +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
|
## 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;
|
||||||
|
Reference in New Issue
Block a user