Skip to content

Commit cf5a9d2

Browse files
author
Kenneth Reitz
committed
.heroku/injection_disabled
1 parent ef4772b commit cf5a9d2

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

bin/compile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,19 @@ fi
104104
# ### The Cache
105105
mkdir -p $CACHE_DIR
106106

107+
108+
set +e
109+
107110
# Create set-aside `.heroku` folder.
108-
mkdir -p .heroku
111+
mkdir .heroku
112+
HEROKU_DIR_STATUS=$?
113+
114+
# This is a new app, disable injection.
115+
[ $HEROKU_DIR_STATUS -nq 0 ] && {
116+
touch .heroku/injection_disabled
117+
}
118+
set -e
119+
109120

110121
# Nice defaults.
111122
LEGACY_VIRTUALENV=false

0 commit comments

Comments
 (0)