Skip to content
This repository has been archived by the owner on Apr 19, 2018. It is now read-only.

Commit

Permalink
support tgz buildpacks
Browse files Browse the repository at this point in the history
  • Loading branch information
♠ ace hacker committed May 12, 2013
1 parent 1193ac9 commit 3681ee1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bin/compile
Expand Up @@ -25,7 +25,13 @@ for BUILDPACK in $(cat $1/.buildpacks); do

if [ "$url" != "" ]; then
echo "=====> Downloading Buildpack: $url"
git clone $url $dir >/dev/null 2>&1

if [[ "$url" =~ \.tgz$ ]]; then
mkdir -p "$dir"
curl -s "$url" | tar xvz -C "$dir" >/dev/null 2>&1
else
git clone $url $dir >/dev/null 2>&1
fi
cd $dir

if [ "$branch" != "" ]; then
Expand Down

0 comments on commit 3681ee1

Please sign in to comment.