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 ""