Correctly render membership credits without logo/url on front page
[blender-dev-fund.git] / deploy.sh
1 #!/usr/bin/env bash
2
3 case "$1" in
4     all|full|quick|'')
5         ;;
6     *)
7         echo "Usage: $0 quick|full" >&2
8         exit 3
9         ;;
10 esac
11
12 # macOS does not support readlink -f, so we use greadlink instead
13 if [ $(uname) = 'Darwin' ]; then
14     command -v greadlink 2>/dev/null 2>&1 || { echo >&2 "Install greadlink using brew."; exit 1; }
15     readlink='greadlink'
16 else
17     readlink='readlink'
18 fi
19 MY_DIR="$(dirname "$($readlink -f "$0")")"
20
21 cd "$MY_DIR/docker"
22 exec ./deploy.sh "$@"