aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-06-06 15:59:02 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-06-06 15:59:02 -0300
commit49460352dbc380d3170aa6c9a9e9008a3e2a9706 (patch)
treeb10cf6dd219993f8e83e7dbe00280efb9c671c04
parent381a275c82e9b2bce2169f952fe129531e9ed47e (diff)
downloadbookup-49460352dbc380d3170aa6c9a9e9008a3e2a9706.tar.gz
bookup-49460352dbc380d3170aa6c9a9e9008a3e2a9706.tar.bz2
Feat: support for an .env file (3)
-rwxr-xr-xbin/provision2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/provision b/bin/provision
index 478e2bd..91608ec 100755
--- a/bin/provision
+++ b/bin/provision
@@ -8,6 +8,8 @@ DIRNAME="`dirname $0`"
BASEDIR="$DIRNAME/.."
# Load optional customizations
+#
+# Search in multiple levels to account for the case this repository is vendorized.
[ -f "$BASEDIR/.env" ] && source $BASEDIR/.env
[ -f "$BASEDIR/../.env" ] && source $BASEDIR/../.env
[ -f "$BASEDIR/../../.env" ] && source $BASEDIR/../../.env