1
0
mirror of https://github.com/dokku/buildpack-nginx.git synced 2024-11-11 05:30:49 +00:00
buildpack-nginx/bin/detect

11 lines
208 B
Plaintext
Raw Normal View History

2013-08-17 06:41:19 +00:00
#!/usr/bin/env bash
2016-09-20 07:00:53 +00:00
# bin/detect <build-dir> <cache-dir>
2016-09-20 07:31:04 +00:00
set -eo pipefail; [[ $TRACE ]] && set -x
2013-08-17 06:41:19 +00:00
2016-09-20 07:00:53 +00:00
# Exit early if app is clearly not an nginx app
2016-09-20 07:31:09 +00:00
if [[ ! -f "$1/.static" ]]; then
2013-08-17 06:41:19 +00:00
exit 1
fi
2016-09-20 07:00:53 +00:00
echo ".static"