diff --git a/tools/create_template b/tools/create_template index d79577fe..36661836 100755 --- a/tools/create_template +++ b/tools/create_template @@ -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 +