Fix output from list_template to be more readable

This commit is contained in:
Sandro Santilli 2014-02-13 12:56:44 +01:00
parent f7cef9dcd8
commit 4254f56093

View File

@ -38,9 +38,8 @@ 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
node <<EOF
var parsed = JSON.parse('$res');
console.dir(parsed);
EOF