Skip to content

Commit ca46509

Browse files
meisterTDOMjudge @ NWERC
authored andcommitted
No quotes needed in bash pattern match.
1 parent a732d6d commit ca46509

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

icpc-wf/disable-turboboost_ht

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ shopt -s extglob
55
declare -A core_ids
66

77
for cpu in /sys/devices/system/cpu/cpu* ; do
8-
[[ $(basename $cpu) =~ '^cpu[0-9]+$' ]] || continue
8+
[[ $(basename $cpu) =~ ^cpu[0-9]+$ ]] || continue
99

1010
# Reenable stuff in case we are rerunning this script.
1111
chmod u+w $cpu/cpufreq/scaling_governor

0 commit comments

Comments
 (0)