: nply/foundationpkgs

commit e722436f194e87826d7b88a0514e6ae3acd37b63
parent 0775b6dcf489acb431c1c14e1b638ae6c2f56f1f
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Fri, 11 Sep 2026 22:38:37 +0530

Load minci handoff server config
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/scripts/minci-handoff.sh b/scripts/minci-handoff.sh
@@ -24,6 +24,13 @@ MINCI_HANDOFF_DL_URL=${MINCI_HANDOFF_DL_URL:-https://nply.org/dl}
 MINCI_HANDOFF_CONFIG_REF=${MINCI_HANDOFF_CONFIG_REF:-refs/heads/integ}
 MINCI_HANDOFF_JOBFILE=${MINCI_HANDOFF_JOBFILE:-}
 
+for _conf in "$MINCI_HANDOFF_CONF/env" "$MINCI_HANDOFF_CONF/config"; do
+	if [ -f "$_conf" ]; then
+		# shellcheck disable=SC1090
+		. "$_conf"
+	fi
+done
+
 usage() {
 	cat >&2 <<EOF
 usage: $SELF handle EVENTFILE | run REPO_PATH REF NEWREV [OLDREV] | post-receive REPO_PATH REPO