diff options
author | Jan Wagner <waja@cyconet.org> | 2014-08-20 20:29:23 +0200 |
---|---|---|
committer | Jan Wagner <waja@cyconet.org> | 2014-08-20 20:29:23 +0200 |
commit | d4b6d09f104f73c462e0e0c8a297ba9fc7c5a53e (patch) | |
tree | 732de882a7cab8342e95c3620836640451b0d317 /plugins-scripts/check_log.sh | |
parent | d8b81e9ef3947a36e2647f4e54a63e3b259b103b (diff) | |
download | monitoring-plugins-d4b6d09f104f73c462e0e0c8a297ba9fc7c5a53e.tar.gz |
check_log.sh: droping path from basename
while evaluating PROGNAME (Closes Debian Bug #758662)
Diffstat (limited to 'plugins-scripts/check_log.sh')
-rwxr-xr-x | plugins-scripts/check_log.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins-scripts/check_log.sh b/plugins-scripts/check_log.sh index 8653a5e1..f67eff69 100755 --- a/plugins-scripts/check_log.sh +++ b/plugins-scripts/check_log.sh | |||
@@ -58,7 +58,7 @@ | |||
58 | # Paths to commands used in this script. These | 58 | # Paths to commands used in this script. These |
59 | # may have to be modified to match your system setup. | 59 | # may have to be modified to match your system setup. |
60 | 60 | ||
61 | PROGNAME=`/bin/basename $0` | 61 | PROGNAME=`basename $0` |
62 | PROGPATH=`echo $0 | sed -e 's,[\\/][^\\/][^\\/]*$,,'` | 62 | PROGPATH=`echo $0 | sed -e 's,[\\/][^\\/][^\\/]*$,,'` |
63 | REVISION="@NP_VERSION@" | 63 | REVISION="@NP_VERSION@" |
64 | PATH="@TRUSTED_PATH@" | 64 | PATH="@TRUSTED_PATH@" |