summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@parabola.nu>2018-03-24 12:30:59 -0400
committerLuke Shumaker <lukeshu@parabola.nu>2018-03-26 15:06:18 -0400
commit323706b19223cdd375f838d48b52d9df5395e526 (patch)
tree727bcf66e4440a7a7afdedc5c684659fe8604641 /config
parent2846b925ca64133b1260b43bc9bac83ffea53348 (diff)
config: Load ${DBSCRIPTS_CONFIG:-config.local}
I thought it did this (Arch devtools does this), I even documented it in the README!
Diffstat (limited to 'config')
-rwxr-xr-xconfig4
1 files changed, 4 insertions, 0 deletions
diff --git a/config b/config
index b4fab5a..d747e8c 100755
--- a/config
+++ b/config
@@ -42,3 +42,7 @@ SRCEXT=".src.tar.gz"
# Where to send error emails, and who they are from
LIST="maintenance@lists.parabola.nu"
FROM="repo@repo.parabola.nu"
+
+# Override default config with config.local
+LOCAL_CONFIG=${DBSCRIPTS_CONFIG:-"$(dirname ${BASH_SOURCE[0]})/config.local"}
+[[ -f "${LOCAL_CONFIG}" ]] && . "${LOCAL_CONFIG}"