1
0
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:
Jose Diaz-Gonzalez 2016-09-20 01:00:53 -06:00
parent ed2e482ed9
commit 1b0c929144

View File

@ -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"