update
This commit is contained in:
parent
724124788d
commit
aee040b2f1
@ -1,5 +1,18 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
# 检查 jq 是否安装
|
||||||
|
if ! command -v jq &> /dev/null; then
|
||||||
|
echo "jq 未安装"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# 检查 qrencode 是否安装
|
||||||
|
if ! command -v qrencode &> /dev/null; then
|
||||||
|
echo "qrencode 未安装"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# 获取IP
|
# 获取IP
|
||||||
IPV4=$(curl -4 -sSL --connect-timeout 3 --retry 2 ip.sb || echo "null")
|
IPV4=$(curl -4 -sSL --connect-timeout 3 --retry 2 ip.sb || echo "null")
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user