Getting configured client at the top

This commit is contained in:
Alex Epstein 2017-07-04 09:39:09 -04:00
parent ff7a234406
commit 2d9037c1a2
1 changed files with 4 additions and 2 deletions

View File

@ -167,6 +167,9 @@ usage()
echo " -v Get the tool version"
}
getConfiguredClient || exit 1
checkInternet || exit 1
while getopts "pauvh" opt; do
case $opt in
\?)
@ -202,8 +205,7 @@ while getopts "pauvh" opt; do
esac
done
getConfiguredClient || exit 1
checkInternet || exit 1
if [[ $# == "1" ]]; then
if [[ $1 == "update" ]];then