Skip to content

Commit

Permalink
feat(slugbuilder): Less verbose buildpack output
Browse files Browse the repository at this point in the history
part 1 of teamhephy/workflow#109

This fixes the excessive verbouse output when cycling through
all buildpacks /bin/detect and the app doesn't match such buildpack
  • Loading branch information
n0n0x committed Dec 28, 2019
1 parent 95406d9 commit e1e1d5c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rootfs/builder/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,12 @@ if [[ -n "$BUILDPACK_URL" ]]; then
buildpack_name=$("$buildpack/bin/detect" "$build_root") && selected_buildpack=$buildpack
else
for buildpack in "${buildpacks[@]}"; do
buildpack_name=$("$buildpack/bin/detect" "$build_root") && selected_buildpack=$buildpack && break
shopt -s nocasematch
if [[ "$DEIS_BUILDPACK_DEBUG" == "True" ]]; then
buildpack_name=$("$buildpack/bin/detect" "$build_root") && selected_buildpack=$buildpack && break
else
buildpack_name=$("$buildpack/bin/detect" "$build_root" 2> /dev/null) && selected_buildpack=$buildpack && break
fi
done
fi

Expand Down

0 comments on commit e1e1d5c

Please sign in to comment.