Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Fix detect logic #6

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 7 additions & 3 deletions bin/compile
Expand Up @@ -41,7 +41,14 @@ for BUILDPACK in $(cat $1/.buildpacks); do
# we'll get errors later if these are needed and don't exist
chmod -f +x $dir/bin/{detect,compile,release} || true

set +e
framework=$($dir/bin/detect $1)
if [ $? != 0 ]; then
echo "Couldn't detect any framework for this buildpack. Exiting."
exit 1
fi
set -e


if [ $? == 0 ]; then
echo "=====> Detected Framework: $framework"
Expand All @@ -59,9 +66,6 @@ for BUILDPACK in $(cat $1/.buildpacks); do
if [ -x $dir/bin/release ]; then
$dir/bin/release $1 > $1/last_pack_release.out
fi
else
echo "Couldn't detect any framework for this buildpack. Exiting."
exit 1
fi
fi
done
Expand Down