05_1c_1d_1p_priv_export 746 B

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/bash
  2. printf "$PRINTFPATTERN" $0 : "1 Compilation. 1 Dossier. 1 Projet. Pad Privé. export/txt"
  3. if test "$TRAVIS" == "true";
  4. then
  5. echo "[ SKIP ]"
  6. exit 99
  7. fi
  8. URL_BASE=https%3A%2F%2Fpad.exegetes.eu.org%2Fgroup.html%2F19%2Fpad.html%2Fg.STVKtWnA83RsmVUC%24Abro2-PRIVE%2Fexport%2Ftxt
  9. URL_GARDE=https%3A%2F%2Fpad.exegetes.eu.org%2Fgroup.html%2F19%2Fpad.html%2Fg.STVKtWnA83RsmVUC%24Abro2Garde-PRIVE%2Fexport%2Ftxt
  10. DOSSIER=MonDossier$$
  11. PROJET=Abro$$
  12. OUTPUT=$(./cocktail -v \
  13. -d "$DOSSIER" \
  14. -p "$PROJET" \
  15. -b "$URL_BASE" \
  16. -g "$URL_GARDE" 2>&1 >/dev/null)
  17. RC=$?
  18. echo -n "RC=$RC "
  19. if test "$RC" -ne "0";
  20. then
  21. # Test raté
  22. echo "[FAILED]"
  23. else
  24. echo "[ OK ]"
  25. fi
  26. echo "$OUTPUT"
  27. exit "$RC"