Updating skeleton

This commit is contained in:
Alex Epstein 2017-08-19 13:43:20 -04:00
parent 7c8d5f94b2
commit 61e9aad6b3
1 changed files with 3 additions and 1 deletions

View File

@ -91,7 +91,7 @@ Examples:
EOF
}
getConfiguredClient || exit 1
while getopts "uvh" opt; do
case "$opt" in
@ -120,6 +120,7 @@ if [[ $# == "0" ]]; then
exit 0
elif [[ $# == "1" ]]; then
if [[ $1 == "update" ]]; then
getConfiguredClient || exit 1
checkInternet || exit 1
update || exit 1
exit 0
@ -131,3 +132,4 @@ fi
## The rest of the conditions and code would go here
## Make sure to use checkInternet at least once before any time httpGet will be called.
## Make sure to call getConfiguredClient at least once before ever calling checkInternet.