From 73dfe81527d3dd747590071cafbf42a9376903c2 Mon Sep 17 00:00:00 2001 From: David Marzal <2069735+Marzal@users.noreply.github.com> Date: Sun, 5 May 2019 11:39:35 +0200 Subject: [PATCH] Comply with Shellcheck SC2209 --- spectre-meltdown-checker.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spectre-meltdown-checker.sh b/spectre-meltdown-checker.sh index 7c6df13..9bef93f 100755 --- a/spectre-meltdown-checker.sh +++ b/spectre-meltdown-checker.sh @@ -158,10 +158,10 @@ supported_cve_list='CVE-2017-5753 CVE-2017-5715 CVE-2017-5754 CVE-2018-3640 CVE- # find a sane command to print colored messages, we prefer `printf` over `echo` # because `printf` behavior is more standard across Linux/BSD # we'll try to avoid using shell builtins that might not take options -echo_cmd_type=echo +echo_cmd_type='echo' if which printf >/dev/null 2>&1; then echo_cmd=$(which printf) - echo_cmd_type=printf + echo_cmd_type='printf' elif which echo >/dev/null 2>&1; then echo_cmd=$(which echo) else @@ -171,7 +171,7 @@ else [ -x /system/bin/echo ] && echo_cmd=/system/bin/echo fi # still empty? fallback to builtin -[ -z "$echo_cmd" ] && echo_cmd=echo +[ -z "$echo_cmd" ] && echo_cmd='echo' __echo() { opt="$1"