Skip to content

Commit

Permalink
Merge pull request #467 from mlandauer/only_copy_to_app_path_on_build
Browse files Browse the repository at this point in the history
Only copy from app import path to app path when building
  • Loading branch information
josegonzalez authored Mar 28, 2024
2 parents 9b62f6d + 80904f5 commit f75971f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 6 additions & 0 deletions include/buildpack.bash
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,12 @@ buildpack-list() {
}

buildpack-setup() {
# $import_path is defined in outer scope
# shellcheck disable=SC2154
if [[ -d "$import_path" ]] && [[ -n "$(ls -A "$import_path")" ]]; then
rm -rf "$app_path" && cp -r "$import_path" "$app_path"
fi

# Buildpack expectations
# app_path defined in outer scope
# shellcheck disable=SC2154
Expand Down
4 changes: 0 additions & 4 deletions include/herokuish.bash
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,6 @@ main() {
set -eo pipefail
[[ "$TRACE" ]] && set -x

if [[ -d "$import_path" ]] && [[ -n "$(ls -A "$import_path")" ]]; then
rm -rf "$app_path" && cp -r "$import_path" "$app_path"
fi

cmd-export paths
cmd-export version
cmd-export herokuish-test test
Expand Down

0 comments on commit f75971f

Please sign in to comment.