Skip to content
Snippets Groups Projects
Commit 18d44858 authored by Gerhard's avatar Gerhard
Browse files

fixed return code for multiple tunnels to check

parent 7e40fb9b
No related branches found
No related tags found
No related merge requests found
......@@ -309,6 +309,7 @@ case $COMMAND in
IDX_END=${#TUNNELS[@]}
fi
EXIT_CODE=0
for (( idx=$IDX_START; idx<$IDX_END; idx++ ));
do
# get the list of processs
......@@ -318,7 +319,6 @@ case $COMMAND in
if [[ "$RESULT" -gt "0" ]]; then
echotime "STATUS - Status of Tunnel ID $idx is ... running"
echo "Status of Tunnel ID $idx is ... running"
EXIT_CODE=0
else
echotime "STATUS - Status of Tunnel ID $idx is ... NOT running"
echo "Status of Tunnel ID $idx is ... NOT running"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment