As briefly discussed in #1425, source the `common/functions` file via an absolute path, rather than determining the relative path by using `dirname`. 3rd-party plugins should follow suit and use the new `$PLUGIN_PATH` convention too.
13 lines
268 B
Bash
Executable File
13 lines
268 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
|
source "$PLUGIN_PATH/common/functions"
|
|
|
|
APP="$1"; REV="$2"
|
|
|
|
# Don't trigger git build if there is no git repository.
|
|
if [ ! -d "$DOKKU_ROOT/$APP/refs" ]; then
|
|
cat
|
|
else
|
|
dokku git-build $APP $REV
|
|
fi
|