mirror of
https://github.com/everett7623/nodeloc_vps_test.git
synced 2024-11-10 10:05:18 +00:00
Update Nlbench.sh
This commit is contained in:
parent
90b2807070
commit
c5732df15a
@ -486,14 +486,14 @@ generate_markdown_output() {
|
|||||||
local url="http://nodeloc.uukk.de/test/${filename}"
|
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 "测试结果已上传。您可以在以下链接查看:"
|
||||||
echo "$url"
|
echo "$url"
|
||||||
echo "结果链接已保存到 $base_output_file.url"
|
echo "结果链接已保存到 $base_output_file.url"
|
||||||
echo "$url" > "$base_output_file.url"
|
echo "$url" > "$base_output_file.url"
|
||||||
else
|
else
|
||||||
echo "上传失败。结果已保存在本地文件 $temp_output_file"
|
echo "上传失败。结果已保存在本地文件 $temp_output_file"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm "$temp_output_file"
|
rm "$temp_output_file"
|
||||||
read -p "按回车键继续..."
|
read -p "按回车键继续..."
|
||||||
|
Loading…
Reference in New Issue
Block a user