mirror of
https://github.com/dokku/buildpack-nginx.git
synced 2024-12-23 20:55:24 +00:00
Simplify detection
This commit is contained in:
parent
ed2e482ed9
commit
1b0c929144
@ -1,9 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
# bin/detect <build-dir> <cache-dir>
|
||||
set -e
|
||||
|
||||
if [[ -f $1/.static ]]; then
|
||||
echo ".static"
|
||||
exit 0
|
||||
else
|
||||
# Exit early if app is clearly not an nginx app
|
||||
if [[ ! -f $1/.static ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo ".static"
|
||||
|
Loading…
Reference in New Issue
Block a user