diff --git a/provision-contest/disable-turboboost_ht b/provision-contest/disable-turboboost_ht index 272d0ee2..c1f92eae 100755 --- a/provision-contest/disable-turboboost_ht +++ b/provision-contest/disable-turboboost_ht @@ -5,7 +5,8 @@ shopt -s extglob declare -A core_ids -for cpu in /sys/devices/system/cpu/cpu* ; do +# shellcheck disable=SC2012 +for cpu in $(ls -1d /sys/devices/system/cpu/cpu* | sort --version-sort) ; do [[ $(basename $cpu) =~ ^cpu[0-9]+$ ]] || continue # Reenable stuff in case we are rerunning this script.