From 1b0c929144d3ebaf9179211f848917b59dcc1cab Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Tue, 20 Sep 2016 01:00:53 -0600 Subject: [PATCH] Simplify detection --- bin/detect | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bin/detect b/bin/detect index aac4809..f6a05c3 100755 --- a/bin/detect +++ b/bin/detect @@ -1,9 +1,10 @@ #!/usr/bin/env bash +# bin/detect 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"