diff options
author | Matthias Eble <psychotrahe@users.sourceforge.net> | 2007-07-07 11:40:29 +0000 |
---|---|---|
committer | Matthias Eble <psychotrahe@users.sourceforge.net> | 2007-07-07 11:40:29 +0000 |
commit | a10569f1399c3549dbcd8f79f10cf49b0cbaadf6 (patch) | |
tree | 22749fa38555cca0583f46e17e8d0095f74f556a | |
parent | 370561d594cd5b444d8858f10baa7712bac6a534 (diff) | |
download | monitoring-plugins-a10569f1399c3549dbcd8f79f10cf49b0cbaadf6.tar.gz |
Changed order in -V/--version output
Fixed -V output for check_log and check_oracle
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1749 f882894a-f735-0410-b71e-b25c423dba1c
-rwxr-xr-x | plugins-scripts/check_log.sh | 4 | ||||
-rwxr-xr-x | plugins-scripts/check_oracle.sh | 4 | ||||
-rw-r--r-- | plugins-scripts/utils.sh.in | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/plugins-scripts/check_log.sh b/plugins-scripts/check_log.sh index 20c55f4e..6f6e68c2 100755 --- a/plugins-scripts/check_log.sh +++ b/plugins-scripts/check_log.sh | |||
@@ -116,11 +116,11 @@ while test -n "$1"; do | |||
116 | exit $STATE_OK | 116 | exit $STATE_OK |
117 | ;; | 117 | ;; |
118 | --version) | 118 | --version) |
119 | print_revision $PROGNAME $VERSION | 119 | print_revision $PROGNAME $REVISION |
120 | exit $STATE_OK | 120 | exit $STATE_OK |
121 | ;; | 121 | ;; |
122 | -V) | 122 | -V) |
123 | print_revision $PROGNAME $VERSION | 123 | print_revision $PROGNAME $REVISION |
124 | exit $STATE_OK | 124 | exit $STATE_OK |
125 | ;; | 125 | ;; |
126 | --filename) | 126 | --filename) |
diff --git a/plugins-scripts/check_oracle.sh b/plugins-scripts/check_oracle.sh index 56962e37..0a8f1521 100755 --- a/plugins-scripts/check_oracle.sh +++ b/plugins-scripts/check_oracle.sh | |||
@@ -89,11 +89,11 @@ case "$cmd" in | |||
89 | exit $STATE_OK | 89 | exit $STATE_OK |
90 | ;; | 90 | ;; |
91 | --version) | 91 | --version) |
92 | print_revision $PLUGIN $REVISION | 92 | print_revision $PROGNAME $REVISION |
93 | exit $STATE_OK | 93 | exit $STATE_OK |
94 | ;; | 94 | ;; |
95 | -V) | 95 | -V) |
96 | print_revision $PLUGIN $REVISION | 96 | print_revision $PROGNAME $REVISION |
97 | exit $STATE_OK | 97 | exit $STATE_OK |
98 | ;; | 98 | ;; |
99 | esac | 99 | esac |
diff --git a/plugins-scripts/utils.sh.in b/plugins-scripts/utils.sh.in index 7750716b..b30b9083 100644 --- a/plugins-scripts/utils.sh.in +++ b/plugins-scripts/utils.sh.in | |||
@@ -13,7 +13,7 @@ else | |||
13 | fi | 13 | fi |
14 | 14 | ||
15 | print_revision() { | 15 | print_revision() { |
16 | echo "$1 (@PACKAGE@ @VERSION@) $2" | 16 | echo "$1 v$2 (@PACKAGE@ @VERSION@)" |
17 | $ECHO "@WARRANTY@" | sed -e 's/\n/ /g' | 17 | $ECHO "@WARRANTY@" | sed -e 's/\n/ /g' |
18 | } | 18 | } |
19 | 19 | ||