From 51a5e63d862839f163b7ef3d6e143b87369fed59 Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch> Date: Mon, 4 Sep 2023 16:46:28 +0200 Subject: [PATCH] fix syntax error -eq: unary operator expected --- check_netio | 7 ++++--- docs/20_Checks/check_netio.md | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/check_netio b/check_netio index 59a9c9d..920ad60 100755 --- a/check_netio +++ b/check_netio @@ -9,12 +9,13 @@ # 2023-08-21 v1.1 <axel.hahn@unibe.ch> add help; add param -i # 2023-08-22 v1.2 <axel.hahn@unibe.ch> send perf data on single interface too; interfaces in alphabetic order; no more tmp file # 2023-08-22 v1.3 <axel.hahn@unibe.ch> show status line with 2 digits after "." +# 2023-09-22 v1.4 <axel.hahn@unibe.ch> fix syntax error -eq: unary operator expected # ====================================================================== . $( dirname $0 )/inc_pluginfunctions -export self_APPVERSION=1.2 +export self_APPVERSION=1.4 # ---------------------------------------------------------------------- @@ -57,9 +58,9 @@ EOF # MAIN # ---------------------------------------------------------------------- -bOptHelp=$( ph.hasParamoption "h" "$@") +ph.hasParamoption "h" "$@"; bOptHelp=$? -if [ $bOptHelp -eq 1 ]; then +if [ $bOptHelp -eq 0 ]; then showHelp exit 0 fi diff --git a/docs/20_Checks/check_netio.md b/docs/20_Checks/check_netio.md index fc1826e..07243bc 100644 --- a/docs/20_Checks/check_netio.md +++ b/docs/20_Checks/check_netio.md @@ -17,7 +17,7 @@ This plugin scans `/proc/net/dev` with the regex `eth|en[ops][0-9]*` to show a f ______________________________________________________________________ CHECK_NETIO -v1.1 +v1.4 (c) Institute for Medical Education - University of Bern Licence: GNU GPL 3 -- GitLab