From 969f650ff1c1987c40347f15ce0f4fca66c6db12 Mon Sep 17 00:00:00 2001 From: Dave Woodfall Date: Mon, 5 Apr 2021 05:10:23 +0000 Subject: [PATCH] Safer config sourcing. Guards against accidents/typos in the config. --- files/slackpkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/slackpkg b/files/slackpkg index 213263c..1076ba3 100644 --- a/files/slackpkg +++ b/files/slackpkg @@ -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=""