返回最终执行结构
This commit is contained in:
1 parent
fd49ec9cea
commit
8cbf29bee5
1 file changed
+4
@@ -251,6 +251,10 @@ arDdnsCheck() {
|
|||||||
echo "Updating Record for $2.$1"
|
echo "Updating Record for $2.$1"
|
||||||
postRs=$(arDdnsUpdate $ddnsIds $2 $hostIp $recordType)
|
postRs=$(arDdnsUpdate $ddnsIds $2 $hostIp $recordType)
|
||||||
|
|
||||||
|
errCode=$?
|
||||||
echo "> $postRs"
|
echo "> $postRs"
|
||||||
|
if [ $errCode -ne 0 ]; then
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user