diff --git a/skeleton b/skeleton index 44e2237..e328797 100755 --- a/skeleton +++ b/skeleton @@ -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.