style(HELPERSCRIPTS): reformat code
This commit is contained in:
parent
9d5c7960c9
commit
db4be32b54
@ -102,19 +102,18 @@ doScriptUpdate=1
|
||||
localScriptName="$(basename "$0")"
|
||||
repoScriptName='update.sh'
|
||||
|
||||
|
||||
### process startup parameters
|
||||
while [ $# -gt 0 ]; do
|
||||
case "$1" in
|
||||
-h|-\?|--help)
|
||||
-h | -\? | --help)
|
||||
# display inline help
|
||||
scriptHelp
|
||||
;;
|
||||
-s|--scripts|--scripts-only)
|
||||
-s | --scripts | --scripts-only)
|
||||
# update scripts only, skip docker container update
|
||||
doDockerUpdate=0
|
||||
;;
|
||||
-c|--container|--container-only)
|
||||
-c | --container | --container-only)
|
||||
# update docker container only, skip script update
|
||||
doScriptUpdate=0
|
||||
;;
|
||||
@ -124,10 +123,9 @@ while [ $# -gt 0 ]; do
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
shift
|
||||
done
|
||||
|
||||
|
||||
### update container
|
||||
if [ "$doDockerUpdate" -eq 1 ]; then
|
||||
# check if docker is installed
|
||||
@ -150,7 +148,6 @@ if [ "$doDockerUpdate" -eq 1 ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
### update scripts
|
||||
if [ "$doScriptUpdate" -eq 1 ]; then
|
||||
printf "%s*** Updating %s service scripts ***%s\n" "$info" "$containerName" "$norm"
|
||||
@ -242,7 +239,6 @@ if [ "$doScriptUpdate" -eq 1 ]; then
|
||||
done <"$checksumFilename"
|
||||
fi
|
||||
|
||||
|
||||
### display results
|
||||
if [ "$doScriptUpdate" -eq 1 ]; then
|
||||
printf "\n%s*** Results ***%s\n" "$info" "$norm"
|
||||
|
Loading…
Reference in New Issue
Block a user