Skip to content

Commit b54faf3

Browse files
author
Kenneth Reitz
committed
move .heroku creation down
1 parent a0dc2a6 commit b54faf3

1 file changed

Lines changed: 11 additions & 13 deletions

File tree

bin/compile

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -105,19 +105,6 @@ fi
105105
mkdir -p $CACHE_DIR
106106

107107

108-
set +e
109-
110-
# Create set-aside `.heroku` folder.
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-
120-
121108
# Nice defaults.
122109
LEGACY_VIRTUALENV=false
123110
VIRTUALENV_LOC=$MODERN_VIRTUALENV_LOC
@@ -145,6 +132,17 @@ for dir in $CACHED_DIRS; do
145132
cp -R $CACHE_DIR/$dir . &> /dev/null || true
146133
done
147134

135+
set +e
136+
# Create set-aside `.heroku` folder.
137+
mkdir .heroku
138+
HEROKU_DIR_STATUS=$?
139+
140+
# This is a new app, disable injection.
141+
[ $HEROKU_DIR_STATUS -eq 0 ] && {
142+
touch .heroku/injection_disabled
143+
}
144+
set -e
145+
148146

149147
# ### Virtualenv Setup
150148
#

0 commit comments

Comments
 (0)