Use $PLUGIN_PATH instead of $(dirname $0)/..

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.
This commit is contained in:
Jim Myhrberg
2015-08-28 14:14:28 +01:00
parent 32a8c0307f
commit d5df6a4190
19 changed files with 20 additions and 20 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$(dirname $0)/../common/functions"
source "$PLUGIN_PATH/common/functions"
git_build_app_repo() {
verify_app_name "$1"

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$(dirname $0)/../common/functions"
source "$PLUGIN_PATH/common/functions"
APP="$1"; REV="$2"