Files
dokku/plugins/tar/receive-app
Michael Hobbs 433db65635 use PLUGIN_PATH
2015-09-03 16:52:35 -07:00

13 lines
267 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 tar build if there is no tarball.
if [ ! -f "$DOKKU_ROOT/$APP/src.tar" ]; then
cat || true
else
dokku tar-build $APP
fi