From 33a66a4c4b4c28d94b53b2dacc5ed259d748ca2d Mon Sep 17 00:00:00 2001 From: Guillaume Lesniak Date: Fri, 16 Dec 2016 17:18:57 +0100 Subject: [PATCH] Scripts: Add get deliverable script to test deliverables --- scripts/get_deliverable.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 scripts/get_deliverable.sh diff --git a/scripts/get_deliverable.sh b/scripts/get_deliverable.sh new file mode 100755 index 0000000..09d7920 --- /dev/null +++ b/scripts/get_deliverable.sh @@ -0,0 +1,13 @@ +# ./get_deliverable.sh +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 ""