diff options
author | Jan Wagner <waja@cyconet.org> | 2017-01-06 16:54:29 +0100 |
---|---|---|
committer | Jan Wagner <waja@cyconet.org> | 2017-01-06 16:54:29 +0100 |
commit | 439b93049ddcfa28d7d3b8dd8085770c613aabc3 (patch) | |
tree | a21e9044fc6cfb19dd1371f131407df91f18f2cd /plugins-scripts/check_sensors.sh | |
parent | 3fc149f4990358a91ca945f8b649a4c511722e73 (diff) | |
download | monitoring-plugins-439b93049ddcfa28d7d3b8dd8085770c613aabc3.tar.gz |
Fixing shellcheck SC2006
Diffstat (limited to 'plugins-scripts/check_sensors.sh')
-rwxr-xr-x | plugins-scripts/check_sensors.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins-scripts/check_sensors.sh b/plugins-scripts/check_sensors.sh index f7428301..5348b175 100755 --- a/plugins-scripts/check_sensors.sh +++ b/plugins-scripts/check_sensors.sh | |||
@@ -2,8 +2,8 @@ | |||
2 | 2 | ||
3 | PATH="@TRUSTED_PATH@" | 3 | PATH="@TRUSTED_PATH@" |
4 | export PATH | 4 | export PATH |
5 | PROGNAME=`basename $0` | 5 | PROGNAME=$(basename $0) |
6 | PROGPATH=`echo $0 | sed -e 's,[\\/][^\\/][^\\/]*$,,'` | 6 | PROGPATH=$(echo $0 | sed -e 's,[\\/][^\\/][^\\/]*$,,') |
7 | REVISION="@NP_VERSION@" | 7 | REVISION="@NP_VERSION@" |
8 | 8 | ||
9 | . $PROGPATH/utils.sh | 9 | . $PROGPATH/utils.sh |
@@ -41,7 +41,7 @@ case "$1" in | |||
41 | exit $STATE_OK | 41 | exit $STATE_OK |
42 | ;; | 42 | ;; |
43 | *) | 43 | *) |
44 | sensordata=`sensors 2>&1` | 44 | sensordata=$(sensors 2>&1) |
45 | status=$? | 45 | status=$? |
46 | if test ${status} -eq 127; then | 46 | if test ${status} -eq 127; then |
47 | text="SENSORS UNKNOWN - command not found (did you install lmsensors?)" | 47 | text="SENSORS UNKNOWN - command not found (did you install lmsensors?)" |