fix some bugs

This commit is contained in:
tsosunchia
2022-05-25 23:40:13 +08:00
committed by GitHub
parent 16ba835537
commit 7cc6b71727

View File

@@ -227,6 +227,10 @@ checkJqPackage() {
checkVersion() {
checkJqPackage
nexttrace -h &>/dev/null
if [ $? -ne 0 ]; then
return 0
fi
echo "正在检查版本..."
version=$(curl -sL https://api.github.com/repos/xgadget-lab/nexttrace/releases/latest | jq -r '.tag_name')
if [[ $version == "" ]]; then