createuser.sh 238 B

123456
  1. #!/bin/sh
  2. set -x
  3. resp1=$(cat createuser.json | curl -s -H "Content-Type: application/json" http://192.168.100.227:8080/signup --data @- | jq .created)
  4. z=$(echo $resp1 | grep true)
  5. test -z $z && exit
  6. echo User Created: $resp1 | grep true