mirror of
https://github.com/alexanderepstein/Bash-Snippets
synced 2018-11-08 02:59:35 +01:00
Getting configured client at the top
This commit is contained in:
parent
ff7a234406
commit
2d9037c1a2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user