Updating skeleton
This commit is contained in:
parent
7c8d5f94b2
commit
61e9aad6b3
4
skeleton
4
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.
|
||||
|
|
Loading…
Reference in New Issue