We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6084589 + dbd281c commit ac72cd3Copy full SHA for ac72cd3
bot/build.sh
@@ -176,7 +176,7 @@ lscpu > _bot_job${SLURM_JOB_ID}.lscpu
176
cat /etc/os-release > _bot_job${SLURM_JOB_ID}.os
177
178
# Also: fetch CPU flags into an array, so that we can implement a hard check against a reference
179
-lscpu_flags_line=$(lscpu | grep "Flags:")
+lscpu_flags_line=$(lscpu | grep "Flags:" || echo "")
180
# strip leading "Flags:" and spaces, and put result in a bash array
181
if [[ $lscpu_flags =~ Flags:\ (.*) ]]; then lscpu_flags=(${BASH_REMATCH[1]}); fi
182
# for now, just print
0 commit comments