From 4ab3358851fdff58671f1fc8cdc97f92f841f2e1 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz <me@kennethreitz.com> Date: Wed, 2 Jan 2013 22:40:52 -0500 Subject: [PATCH] better --- bin/compile | 1 - bin/release | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/bin/compile b/bin/compile index d2704437..445ed154 100755 --- a/bin/compile +++ b/bin/compile @@ -103,7 +103,6 @@ fi # ### The Cache mkdir -p $CACHE_DIR -[ ! "$(ls -A $CACHE_DIR)" ] # Purge "old-style" virtualenvs. [ -d $CACHE_DIR/$LEGACY_TRIGGER ] && rm -fr $CACHE_DIR/.heroku/bin $CACHE_DIR/.heroku/lib $CACHE_DIR/.heroku/include diff --git a/bin/release b/bin/release index b2b3a689..e5df3379 100755 --- a/bin/release +++ b/bin/release @@ -3,7 +3,9 @@ BIN_DIR=$(cd $(dirname $0); pwd) # absolute path BUILD_DIR=$1 -NAME=$($BIN_DIR/detect $BUILD_DIR) || exit 1 + +MANAGE_FILE=$(cd $BUILD_DIR && find . -maxdepth 3 -type f -name 'manage.py' | head -1) +MANAGE_FILE=${MANAGE_FILE:2} cat <<EOF --- @@ -11,8 +13,6 @@ config_vars: EOF -MANAGE_FILE=$(cd $BUILD_DIR && find . -maxdepth 3 -type f -name 'manage.py' | head -1) -MANAGE_FILE=${MANAGE_FILE:2} if [[ $MANAGE_FILE ]]; then cat <<EOF -- GitLab