Commit c064b389 authored by aattww's avatar aattww
Browse files

Change command check to fully pass shellcheck

parent 8400d1e6
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment