summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/pingscript4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/pingscript b/scripts/pingscript
index f6671b4..80b1a74 100755
--- a/scripts/pingscript
+++ b/scripts/pingscript
@@ -5,8 +5,10 @@
logger -t sublab-updater starting status update
insertstatus() {
+ local ec=$?
local status
- if [ $? -eq 0 ]; then
+
+ if [ $ec -eq 0 ]; then
status=online
else
status=offline