运算符一致性

This commit is contained in:
若海 committed 2021-03-03 11:03:04 +08:00
1 parent ec193cd52f
commit 787dce0bac
1 file changed
+2 -2
+2 -2
View File
@@ -195,7 +195,7 @@ arDdnsUpdate() {
recordCd=$(echo $recordRs | sed 's/.*{"code":"\([0-9]*\)".*/\1/')
# Output Result
if [ "$recordIp" = "$4" ] && [ "$recordCd" = "1" ]; then
if [ "$recordIp" == "$4" ] && [ "$recordCd" == "1" ]; then
echo "arDdnsUpdate - success"
return 0
else
@@ -220,7 +220,7 @@ arDdnsCheck() {
local postRs
echo "Fetching Host Ip"
if [ "$3" = "6" ]; then
if [ "$3" == "6" ]; then
recordType=AAAA
hostIp=$(arWanIp6)
else