Removed redundant error messages on scriptHelp invocation.
This commit is contained in:
parent
37d51c50e7
commit
d9804ee8ec
@ -134,7 +134,6 @@ errorExplain[254]="Could not connect with CloudFlare API. Please re-run this scr
|
|||||||
|
|
||||||
### Process script parameters
|
### Process script parameters
|
||||||
if [ -z $1 ]; then
|
if [ -z $1 ]; then
|
||||||
echo -e "\e[1;31mNo parameter(s) provided\e[0m\n"
|
|
||||||
scriptHelp 1
|
scriptHelp 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -164,7 +163,6 @@ while getopts ':f:r:i:46hx' PARAMS; do
|
|||||||
scriptExamples
|
scriptExamples
|
||||||
;;
|
;;
|
||||||
?)
|
?)
|
||||||
echo -e "\e[1;31mInvalid parameter(s) provided\e[0m\n"
|
|
||||||
scriptHelp 1
|
scriptHelp 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user