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 committed 2015-08-28 14:14:28 +01:00
1 parent 32a8c0307f
commit d5df6a4190
19 files changed
+20 -20

No files matched your search

+1 -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"
PLUGIN_DIR="$(dirname $0)"