Simplify detection

This commit is contained in:
Jose Diaz-Gonzalez 2016-09-20 01:00:53 -06:00
parent ed2e482ed9
commit 1b0c929144
1 changed files with 5 additions and 4 deletions

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"