From 38fc8f4fe7330dc7c2771a91fc9672425e11918f Mon Sep 17 00:00:00 2001 From: Ollanta <ollantaster@gmail.com> Date: Thu, 2 Apr 2015 14:53:52 +0200 Subject: [PATCH] Prefer a 'manage.py' that exists higher up in the directory hierarchy --- bin/steps/collectstatic | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/steps/collectstatic b/bin/steps/collectstatic index 134b5c69..7ed9f422 100755 --- a/bin/steps/collectstatic +++ b/bin/steps/collectstatic @@ -2,7 +2,7 @@ source $BIN_DIR/utils -MANAGE_FILE=$(find . -maxdepth 3 -type f -name 'manage.py' | head -1) +MANAGE_FILE=$(find . -maxdepth 3 -type f -name 'manage.py' -printf '%d\t%P\n' | sort -nk1 | cut -f2 | head -1) MANAGE_FILE=${MANAGE_FILE:-fakepath} [ -f .heroku/collectstatic_disabled ] && DISABLE_COLLECTSTATIC=1 @@ -33,4 +33,4 @@ if [ ! "$DISABLE_COLLECTSTATIC" ] && [ -f "$MANAGE_FILE" ]; then echo fi -bpwatch stop collectstatic \ No newline at end of file +bpwatch stop collectstatic -- GitLab