Safer config sourcing.

Guards against accidents/typos in the config.
This commit is contained in:
Dave Woodfall 2021-04-05 05:10:23 +00:00
parent 88bb400532
commit 969f650ff1

View file

@ -70,7 +70,7 @@ SOURCE=$(sed -n '
\@^local://@p
\@^https\{0,1\}://@p
\@^ftps\{0,1\}://@p' $CONF/mirrors)
. $CONF/slackpkg.conf
PATH='' builtin source $CONF/slackpkg.conf
WORKDIR=${ROOT}/${WORKDIR}
ERROR=""