gulp 491 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  3. if hash realpath 2>/dev/null; then
  4. export CODEBASE=$(realpath $SCRIPT_DIR/..)
  5. elif hash grealpath 2>/dev/null; then
  6. export CODEBASE=$(grealpath $SCRIPT_DIR/..)
  7. else
  8. export CODEBASE=$(readlink -e $SCRIPT_DIR/..)
  9. fi
  10. if [ -z "$CODEBASE" ]; then
  11. echo "Unable to determine absolute codebase directory"
  12. exit 1
  13. fi
  14. cd "$CODEBASE"
  15. docker-compose run --no-deps --rm -w /srv/manager app gulp $@
  16. exit $?