Removed syntactic errors.

This commit is contained in:
Gerhard Hoffmann 2022-06-25 21:27:14 +02:00
parent 31e1aad762
commit 729778043a

View File

@ -375,7 +375,8 @@ cleanup_previous_version() {
check_for_running_apism () {
local func="${FUNCNAME[0]}"
if nc localhost 7778; then
if nc localhost 7778
then
APISM_RUNNING=1
log_debug "$func:${LINENO}: APISM running..."
return 0
@ -386,6 +387,7 @@ check_for_running_apism () {
check_default_route () {
local func="${FUNCNAME[0]}"
if ip route | head -n 1 | grep -q '^default'
then
log_debug "$func:${LINENO}: default route set"
return 0
fi
@ -397,6 +399,7 @@ check_route_to_repository () {
# ip_address=$1, e.g. git.mimbach.de (185.191.219.134)
# 185.191.219.134 via 192.168.5.254 ...
if test "$#" -eq 1 && ip route get "$1" | head -n 1 | grep -q "^$1"
then
log_debug "$func:${LINENO}: route to repository available"
return 0
fi