From db962d9b7cc8e8d0b0139eeb27c9528edafa4163 Mon Sep 17 00:00:00 2001 From: Francois Charette Date: Wed, 21 Oct 2009 10:20:31 +0200 Subject: Change loop var CARCH to _arch This is just better practice, as CARCH means something else in makepkg.conf Signed-off-by: Aaron Griffin --- commitpkg | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'commitpkg') diff --git a/commitpkg b/commitpkg index e805b47..10f58d9 100755 --- a/commitpkg +++ b/commitpkg @@ -67,10 +67,10 @@ if [ "$1" = "-l" ]; then shift 2 fi -for CARCH in ${arch[@]}; do - echo "===> Uploading to staging/$repo for arch=$CARCH" +for _arch in ${arch[@]}; do + echo "===> Uploading to staging/$repo for arch=${_arch}" for _pkgname in ${pkgname[@]}; do - pkgfile=$_pkgname-$pkgver-$pkgrel-$CARCH$PKGEXT + pkgfile=$_pkgname-$pkgver-$pkgrel-${_arch}$PKGEXT if [ ! -f $pkgfile -a -f "$PKGDEST/$pkgfile" ]; then pkgfile="$PKGDEST/$pkgfile" @@ -105,7 +105,7 @@ for CARCH in ${arch[@]}; do echo "===> Commited" fi - archrelease $repo-$CARCH || abort + archrelease $repo-${_arch} || abort done if [ "${arch[*]}" == "any" ]; then -- cgit v1.2.3-70-g09d2