Skip to content
Snippets Groups Projects
Commit 7e40fb9b authored by Gerhard's avatar Gerhard
Browse files

added return code for the status check

parent b8e0d07c
Branches
No related tags found
No related merge requests found
......@@ -318,13 +318,16 @@ 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"
EXIT_CODE=1
fi
done
echotime "COMM - Execute STATUS procedure ... Done"
echotime ""
exit $EXIT_CODE
;;
show)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment