1
0
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:
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
# 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"