From b7ce90fefc371b47c9036d36d741139a4dd8efe2 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Tue, 16 Oct 2018 01:58:31 -0400 Subject: makechrootpkg: load makepkg.conf variables correctly Since makepkg.conf is a bash-compatible configuration file, it must be sourced. Signed-off-by: Eli Schwartz Signed-off-by: Levente Polyak --- makechrootpkg.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makechrootpkg.in b/makechrootpkg.in index 52e834b..4ea008b 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -69,7 +69,7 @@ load_vars() { [[ -f $makepkg_conf ]] || return 1 for var in {SRC,SRCPKG,PKG,LOG}DEST MAKEFLAGS PACKAGER; do - [[ -z ${!var:-} ]] && eval "$(grep -a "^${var}=" "$makepkg_conf")" + [[ -z ${!var:-} ]] && eval "$(source "$makepkg_conf"; printf "%s='%s'" "$var" "${!var}")" done return 0 -- cgit v1.2.3-70-g09d2