summaryrefslogtreecommitdiff
path: root/hooks/thermal
diff options
context:
space:
mode:
authorBenjamin Drung <benjamin.drung@cloud.ionos.com>2018-12-10 16:50:01 +0100
committerBenjamin Drung <benjamin.drung@cloud.ionos.com>2018-12-18 13:30:15 +0100
commitf277309e0b6b57ff2f8f9411c026394b7635f3d6 (patch)
tree9b9e9621b8b535c7d73385c40c44722ce8aba0ed /hooks/thermal
parent3c8b4c30945ae19529afae398084cfee79b771cf (diff)
Fix (nearly) all issues found by shellcheck
shellcheck found more issues than SC1074. Address most of these issues. You can check the shell code by running: ``` shellcheck -e SC1090,SC1091 -s dash hook-functions $(find * -type f \( -executable ! -name rules -o -regex '.*\.\(post\|pre\).*' -o -regex "^\(docs\|scripts\)/.*" ! -name '*.md' \)) ``` Signed-off-by: Benjamin Drung <benjamin.drung@cloud.ionos.com>
Diffstat (limited to 'hooks/thermal')
-rwxr-xr-xhooks/thermal2
1 files changed, 1 insertions, 1 deletions
diff --git a/hooks/thermal b/hooks/thermal
index 93f5100..5807386 100755
--- a/hooks/thermal
+++ b/hooks/thermal
@@ -28,7 +28,7 @@ powerpc|ppc64)
[ -r /proc/cpuinfo ] || exit 0
- MODEL="`grep model /proc/cpuinfo`"
+ MODEL="$(grep model /proc/cpuinfo)"
MODEL="${MODEL##*: }"
case "$MODEL" in