From 88764c029850a76e3ee05a9858a8198656179686 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Mon, 28 Jun 2010 10:26:38 +0200 Subject: local can only be used within functions --- makechrootpkg | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'makechrootpkg') diff --git a/makechrootpkg b/makechrootpkg index 745fb0f..79dc517 100755 --- a/makechrootpkg +++ b/makechrootpkg @@ -163,8 +163,7 @@ for f in ${source[@]}; do done for i in 'changelog' 'install'; do - local filelist=$(sed -n "s/^[[:space:]]*$i=//p" PKGBUILD) - local file + filelist=$(sed -n "s/^[[:space:]]*$i=//p" PKGBUILD) for file in $filelist; do # evaluate any bash variables used eval file=${file} -- cgit v1.2.3-70-g09d2