From 2d8a4e0789a1f5f1ba95bace51e9e9bedc695d8d Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Mon, 30 Jul 2018 14:33:08 -0400 Subject: [PATCH] sqg: use the configs from /etc if I have set a different version or repo, then sqg ought to just use those new variables. It's every install that I have to add this because I switch sbopkg.conf to "SBo-git"/"current", and then `sqg` can't find the SBo/14.2 or whatever repo. Signed-off-by: Vincent Batts --- src/usr/sbin/sqg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/usr/sbin/sqg b/src/usr/sbin/sqg index a0d68f2..d2a2d78 100755 --- a/src/usr/sbin/sqg +++ b/src/usr/sbin/sqg @@ -31,6 +31,10 @@ SBOPKG_CONF=${SBOPKG_CONF:-/etc/sbopkg/sbopkg.conf} +if [ -e "${SBOPKG_CONF}" ] ; then + source "${SBOPKG_CONF}" +fi + ### NO CHANGES SHOULD BE NECESSARY BELOW THIS LINE ### # source all sqg functions