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