Change command check to fully pass shellcheck

pull/2841/head
aattww 5 years ago
parent 8400d1e60e
commit c064b3896a

@ -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

Loading…
Cancel
Save