Skip to content

Commit e1e1d5c

Browse files
committed
feat(slugbuilder): Less verbose buildpack output
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
1 parent 95406d9 commit e1e1d5c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

rootfs/builder/build.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,12 @@ if [[ -n "$BUILDPACK_URL" ]]; then
157157
buildpack_name=$("$buildpack/bin/detect" "$build_root") && selected_buildpack=$buildpack
158158
else
159159
for buildpack in "${buildpacks[@]}"; do
160-
buildpack_name=$("$buildpack/bin/detect" "$build_root") && selected_buildpack=$buildpack && break
160+
shopt -s nocasematch
161+
if [[ "$DEIS_BUILDPACK_DEBUG" == "True" ]]; then
162+
buildpack_name=$("$buildpack/bin/detect" "$build_root") && selected_buildpack=$buildpack && break
163+
else
164+
buildpack_name=$("$buildpack/bin/detect" "$build_root" 2> /dev/null) && selected_buildpack=$buildpack && break
165+
fi
161166
done
162167
fi
163168

0 commit comments

Comments
 (0)