Scripts: Add get deliverable script to test deliverables

pull/8/head
Guillaume Lesniak 2016-12-16 17:18:57 +01:00
parent 05572885ce
commit 33a66a4c4b
1 changed files with 13 additions and 0 deletions

13
scripts/get_deliverable.sh Executable file
View File

@ -0,0 +1,13 @@
# ./get_deliverable.sh <token> <anr_id> <model_id>
clear
echo "======"
echo http://monarcfo/api/client-anr/$2/deliverable?model=$3
echo "======"
curl -H "Token: $1" http://monarcfo/api/client-anr/$2/deliverable?model=$3 > /tmp/exported.docx 2>/dev/null
if grep "errors" /tmp/exported.docx; then
cat /tmp/exported.docx
fi
echo ""