From 0551c57127daf6b3773fed9b471b70a0d983ca59 Mon Sep 17 00:00:00 2001 From: Erwan Velu Date: Sun, 26 Sep 2021 21:03:36 +0200 Subject: [PATCH] one-core-peak.sh: Fixing bash This commit fixes some warning around the bash syntax Signed-off-by: Erwan Velu --- t/one-core-peak.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/one-core-peak.sh b/t/one-core-peak.sh index 7c8ca56a..ae2ddc64 100755 --- a/t/one-core-peak.sh +++ b/t/one-core-peak.sh @@ -75,7 +75,7 @@ usage() { } check_args() { - local OPTIND h option + local OPTIND option while getopts "hl" option; do case "${option}" in h) # Show help @@ -91,7 +91,7 @@ check_args() { done shift $((OPTIND-1)) [ $# -eq 0 ] && fatal "Missing drive(s) as argument" - drives="$@" + drives="$*" } check_drive_exists() { @@ -200,7 +200,7 @@ show_system() { info "system" "CPU: ${CPU_MODEL}" info "system" "MEMORY: ${MEMORY_SPEED}" info "system" "KERNEL: ${KERNEL}" - tsc=$(journalctl -k | grep 'tsc: Refined TSC clocksource calibration:' | awk '{print $11'}) + tsc=$(journalctl -k | grep 'tsc: Refined TSC clocksource calibration:' | awk '{print $11}') if [ -n "${tsc}" ]; then info "system" "TSC: ${tsc} Mhz" tsc=$(echo ${tsc} | tr -d '.') -- 2.25.1