[monitoring-plugins] fixed the identation (and also patched -V on ...

MisterMountain git at monitoring-plugins.org
Tue May 2 10:40:11 CEST 2023


 Module: monitoring-plugins
 Branch: master
 Commit: 3dc677e4f1f990e7b26bc714a02608070379cf85
 Author: MisterMountain <bjoern.berg at netways.de>
   Date: Tue Apr 11 17:11:06 2023 +0200
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=3dc677e

fixed the identation (and also patched -V on check_oracle to behave exactly like --version again)

---

 plugins-scripts/check_oracle.sh  | 10 +++++-----
 plugins-scripts/check_sensors.sh |  2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/plugins-scripts/check_oracle.sh b/plugins-scripts/check_oracle.sh
index f340b97..d58cfbe 100755
--- a/plugins-scripts/check_oracle.sh
+++ b/plugins-scripts/check_oracle.sh
@@ -86,20 +86,20 @@ esac
 # Information options
 case "$cmd" in
 --help)
-		print_help
+    print_help
     exit "$STATE_OK"
     ;;
 -h)
-		print_help
+    print_help
     exit "$STATE_OK"
     ;;
 --version)
-		print_revision "$PROGNAME" "$REVISION"
+    print_revision "$PROGNAME" "$REVISION"
     exit "$STATE_UNKNOWN"
     ;;
 -V)
-		print_revision "$PROGNAME" "$REVISION"
-    exit "$STATE_OK"
+    print_revision "$PROGNAME" "$REVISION"
+    exit "$STATE_UNKNOWN"
     ;;
 esac
 
diff --git a/plugins-scripts/check_sensors.sh b/plugins-scripts/check_sensors.sh
index 3c4cf01..adbfc53 100755
--- a/plugins-scripts/check_sensors.sh
+++ b/plugins-scripts/check_sensors.sh
@@ -38,7 +38,7 @@ case "$1" in
 		;;
 	-V)
 		print_revision "$PROGNAME" "$REVISION"
-		exit "$STATE_OK"
+		exit "$STATE_UNKNOWN"
 		;;
 	*)
 		sensordata=$(sensors 2>&1)



More information about the Commits mailing list