Scripts: Add get deliverable script to test deliverables
parent
05572885ce
commit
33a66a4c4b
|
@ -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 ""
|
Loading…
Reference in New Issue