mirror of
https://github.com/everett7623/nodeloc_vps_test.git
synced 2024-12-27 08:45:20 +00:00
Update Nlbench.sh
This commit is contained in:
parent
90b2807070
commit
c5732df15a
16
Nlbench.sh
16
Nlbench.sh
@ -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
|
||||
echo "测试结果已上传。您可以在以下链接查看:"
|
||||
echo "$url"
|
||||
echo "结果链接已保存到 $base_output_file.url"
|
||||
echo "$url" > "$base_output_file.url"
|
||||
else
|
||||
echo "上传失败。结果已保存在本地文件 $temp_output_file"
|
||||
fi
|
||||
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
|
||||
echo "上传失败。结果已保存在本地文件 $temp_output_file"
|
||||
fi
|
||||
|
||||
rm "$temp_output_file"
|
||||
read -p "按回车键继续..."
|
||||
|
Loading…
Reference in New Issue
Block a user