You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
539 B

  1. #!/bin/bash
  2. # compose: no-hooks
  3. ## Load action gets a first argument a FILE/DIRECTORY/URL holding the necessary files.
  4. ##
  5. ##
  6. if [ -z "$SERVICE_DATASTORE" ]; then
  7. echo "This script is meant to be run through 'compose' to work properly." >&2
  8. exit 1
  9. fi
  10. usage="$exname [-h|--help]"
  11. while [ "$1" ]; do
  12. case "$1" in
  13. "--help"|"-h")
  14. print_usage
  15. exit 0
  16. ;;
  17. *)
  18. err "Unexpected argument '$1'."
  19. exit 1
  20. ;;
  21. esac
  22. shift
  23. done
  24. set -e
  25. relation-get url