Explorar o código

Change command check to fully pass shellcheck

aattww %!s(int64=5) %!d(string=hai) anos
pai
achega
c064b3896a
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      dnsapi/dns_joker.sh

+ 1 - 3
dnsapi/dns_joker.sh

@@ -120,9 +120,7 @@ _joker_rest() {
   data="$1"
   _debug data "$data"
 
-  response="$(_post "$data" "$JOKER_API" "" "POST")"
-
-  if [ "$?" != "0" ]; then
+  if ! response="$(_post "$data" "$JOKER_API" "" "POST")"; then
     _err "Error POSTing"
     return 1
   fi