mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
simplify django check
This commit is contained in:
+2
-2
@@ -24,6 +24,6 @@ fi
|
||||
# Otherwise, `Python`.
|
||||
|
||||
|
||||
SETTINGS_FILE=$(find $BUILD_DIR/. -maxdepth 3 -type f -name 'settings.py' | head -1)
|
||||
MANAGE_FILE=$(find $BUILD_DIR/. -maxdepth 3 -type f -name 'manage.py' | head -1)
|
||||
|
||||
[ -n "$SETTINGS_FILE" ] && echo Python/Django || echo Python
|
||||
[ -n "$MANAGE_FILE" ] && grep -Fiq "django" $MANAGE_FILE && echo Python/Django || echo Python
|
||||
|
||||
Reference in New Issue
Block a user