From 42e2f8bfbf1361a891cea6b440071eed78a3d389 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Thu, 10 Nov 2011 06:05:11 -0500 Subject: makepkg: check for value before using eval'd var This prevent bsdtar from exploding when install= or changelog= are present without a value. Signed-off-by: Dave Reisner Signed-off-by: Dan McGee --- scripts/makepkg.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 5d048d28..085fbb91 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -1348,7 +1348,7 @@ create_srcpackage() { while read -r file; do # evaluate any bash variables used eval file=\"$(sed 's/^\(['\''"]\)\(.*\)\1$/\2/' <<< "$file")\" - if [[ ! -f "${srclinks}/${pkgbase}/$file" ]]; then + if [[ $file && ! -f "${srclinks}/${pkgbase}/$file" ]]; then msg2 "$(gettext "Adding %s file (%s)...")" "$i" "${file}" ln -s "${startdir}/$file" "${srclinks}/${pkgbase}/" fi -- cgit v1.2.3-70-g09d2