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
ea01c5d727
commit
98c7c4abf4
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# 定义版本
|
# 定义版本
|
||||||
CURRENT_VERSION="2024-09-07 v1.2.1" # 最新版本号
|
CURRENT_VERSION="2024-09-07 v1.2.2" # 最新版本号
|
||||||
SCRIPT_URL="https://raw.githubusercontent.com/everett7623/nodeloc_vps_test/main/Nlbench.sh"
|
SCRIPT_URL="https://raw.githubusercontent.com/everett7623/nodeloc_vps_test/main/Nlbench.sh"
|
||||||
VERSION_URL="https://raw.githubusercontent.com/everett7623/nodeloc_vps_test/main/version.sh"
|
VERSION_URL="https://raw.githubusercontent.com/everett7623/nodeloc_vps_test/main/version.sh"
|
||||||
PASTE_SERVICE_URL="http://nodeloc.uukk.de/test/"
|
PASTE_SERVICE_URL="http://nodeloc.uukk.de/test/"
|
||||||
@ -519,9 +519,9 @@ generate_markdown_output() {
|
|||||||
if curl -H "Content-Type: text/plain; charset=utf-8" -s -X PUT --data-binary @"$temp_output_file" "$txt_url" && \
|
if curl -H "Content-Type: text/plain; charset=utf-8" -s -X PUT --data-binary @"$temp_output_file" "$txt_url" && \
|
||||||
echo "$html_content" | curl -H "Content-Type: text/html; charset=utf-8" -s -X PUT --data-binary @- "$html_url"; then
|
echo "$html_content" | curl -H "Content-Type: text/html; charset=utf-8" -s -X PUT --data-binary @- "$html_url"; then
|
||||||
echo "测试结果已上传。您可以在以下链接查看:"
|
echo "测试结果已上传。您可以在以下链接查看:"
|
||||||
echo "$html_url"
|
echo "$txt_url"
|
||||||
echo "结果链接已保存到 $base_output_file.url"
|
echo "结果链接已保存到 $base_output_file.url"
|
||||||
echo "$html_url" > "$base_output_file.url"
|
echo "$txt_url" > "$base_output_file.url"
|
||||||
else
|
else
|
||||||
echo "上传失败。结果已保存在本地文件 $temp_output_file"
|
echo "上传失败。结果已保存在本地文件 $temp_output_file"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user