diff options
author | David Spickett <david.spickett@linaro.org> | 2020-05-07 16:33:40 +0100 |
---|---|---|
committer | David Spickett <david.spickett@linaro.org> | 2020-05-11 12:29:13 +0100 |
commit | 17d02b8f3b8df92ff411eddf876f2d95f1cff09c (patch) | |
tree | 1258e22ed9603586bf45a99fccda8b26e6f24143 /prepare-board.sh | |
parent | 370a9cfc9b5365e2df975da579e2fd6a796b8997 (diff) |
Various: Fix the majority of shellcheck warnings
Change-Id: I143ac44f14de68935116bbe62a9a9ff752d7a395
Diffstat (limited to 'prepare-board.sh')
-rwxr-xr-x | prepare-board.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/prepare-board.sh b/prepare-board.sh index b1952f3..23c25a4 100755 --- a/prepare-board.sh +++ b/prepare-board.sh @@ -273,6 +273,8 @@ configure_perf_hack() fi if [ "$op" = "start_docker" ]; then + # We do want word splitting here as the conf contains cmd line options for perf + # shellcheck disable=SC2046 taskset -c 0 $LINUX_TOOLS/perf record -q -N $(cat $conf_file) -o /dev/null -- sleep 2000d 1>&- 2>&- & pid=$! disown $pid @@ -337,7 +339,7 @@ do_cpufreq_start() # By default use ondemand governor with HW min and max frequencies. # This avoid inconsistent state when we try to set $minfreq below # current maximum frequency. - $LINUX_TOOLS/cpupower -c $cpu frequency-set --governor ondemand --min $(calc_freq "$cpufreq_path" min) --max $(calc_freq "$cpufreq_path" max) + $LINUX_TOOLS/cpupower -c $cpu frequency-set --governor ondemand --min "$(calc_freq "$cpufreq_path" min)" --max "$(calc_freq "$cpufreq_path" max)" set_var "$restore_file" "$cpufreq_path/scaling_governor" "$gov" set_var "$restore_file" "$cpufreq_path/scaling_min_freq" "$minfreq" |