Update Nlbench.sh

This commit is contained in:
Jensfrank 2024-09-07 22:58:02 +08:00 committed by GitHub
parent 90b2807070
commit c5732df15a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -486,14 +486,14 @@ generate_markdown_output() {
local url="http://nodeloc.uukk.de/test/${filename}"
# 上传文件
if curl -s -X PUT --data-binary @"$temp_output_file" "$url"; then
if curl -H "Content-Type: text/plain; charset=utf-8" -s -X PUT --data-binary @"$temp_output_file" "$url"; then
echo "测试结果已上传。您可以在以下链接查看:"
echo "$url"
echo "结果链接已保存到 $base_output_file.url"
echo "$url" > "$base_output_file.url"
else
else
echo "上传失败。结果已保存在本地文件 $temp_output_file"
fi
fi
rm "$temp_output_file"
read -p "按回车键继续..."