summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-06-28 10:26:38 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-06-28 10:26:38 +0200
commit88764c029850a76e3ee05a9858a8198656179686 (patch)
treebb833b8dc1fbdcc9cb6b0a75113a1facfcd21134
parentf2959b8dd50efc0ba8bb0fe1a694ca2a9997de36 (diff)
downloaddevtools-88764c029850a76e3ee05a9858a8198656179686.tar.gz
devtools-88764c029850a76e3ee05a9858a8198656179686.tar.xz
local can only be used within functions
-rwxr-xr-xcommitpkg3
-rwxr-xr-xmakechrootpkg3
2 files changed, 2 insertions, 4 deletions
diff --git a/commitpkg b/commitpkg
index 627941f..74463c9 100755
--- a/commitpkg
+++ b/commitpkg
@@ -69,8 +69,7 @@ done) || true
# check if changelog and install files are under version control
(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}
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}