mirror of
https://github.com/anrieff/libcpuid
synced 2025-10-03 11:01:30 +00:00
parent
5fb19a718b
commit
56ed6bd7bf
3 changed files with 1371 additions and 3 deletions
|
@ -94,7 +94,7 @@ echo -e "\033[34mCreating '$REPORT_FILE' report file...\033[0m"
|
|||
|
||||
# Generate test file name
|
||||
if [[ -n "$output_dir" ]]; then
|
||||
test_file="$("$cpuid_tool" --load="$raw_file" --brandstr | head -n1 | sed -e 's/([^)]*)//g' -e 's/,//g' | cut -d'@' -f1 | xargs | sed -r 's/\s+/-/g' | tr '[:upper:]' '[:lower:]')"
|
||||
test_file="$("$cpuid_tool" --load="$raw_file" --brandstr | head -n1 | sed -e 's|([^)]*)||g' -e 's|,||g' -e 's|w/|with|g' | cut -d'@' -f1 | xargs | sed -r 's|\s+|-|g' | tr '[:upper:]' '[:lower:]')"
|
||||
if [[ -n "$test_file" ]]; then
|
||||
read -r -p "'$test_file' will be the test file name, you can enter a different one if needed (without extension): " test_file_prompt
|
||||
test_file="${test_file_prompt:-$test_file}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue