1
0
mirror of https://github.com/dokku/buildpack-nginx.git synced 2024-11-17 23:53:07 +00:00
buildpack-nginx/bin/detect

12 lines
207 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>
2022-09-10 21:13:33 +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"