Exit with error if template creation response text contains a space
Should really check for response code, but dunno how to do that right away
This commit is contained in:
parent
3e4c141913
commit
3a681b6670
@ -41,5 +41,9 @@ if test x${verbose} = xyes; then
|
||||
echo "${res}"
|
||||
fi
|
||||
|
||||
# Successful response contains no space
|
||||
echo "$res" | grep " " && { echo $res && exit 1; }
|
||||
|
||||
tok=`echo "$res" | sed 's/.*"template_id":"\([^"]*\)".*/\1/'`
|
||||
echo $tok
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user