X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 96DCADC7B4C for ; Fri, 5 Jul 2013 04:21:55 +0000 (UTC) Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 68DAE20848 for ; Fri, 5 Jul 2013 00:21:53 -0400 (EDT) Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute6.internal (MEProxy); Fri, 05 Jul 2013 00:21:53 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:to:subject:date:message-id :in-reply-to:references; s=smtpout; bh=z5+kra+DdPj+5NCAJwm9n93X/ xo=; b=hgKBtsdKsPkzpFVAHm2OTdfmyCnv8jM8nUPCuI49U4QMlTIKsgQE9FvL0 iqv8l1PADiDBA/SFHIcWJJLpN8v8879/rAxIQl3Qj+GP646eDDMh17U/lE6VbZD3 E9Avn0fs3K5nC4dgSI8EOBRu+H6h+1jBmqHAxyuSr2Cp1EZjv4= X-Sasl-enc: LRKjIGJFf2Ovz6NMsTa7Z94/9kdNjyPCMt5yLDBbjcSb 1372998113 Received: from localhost (unknown [69.86.161.244]) by mail.messagingengine.com (Postfix) with ESMTPA id 3D512680204 for ; Fri, 5 Jul 2013 00:21:53 -0400 (EDT) From: Dubiousjim To: alpine-devel@lists.alpinelinux.org Subject: [alpine-devel] [PATCH 26/31] apkgrel: tweaks to loops, add quotes Date: Fri, 5 Jul 2013 00:21:35 -0400 Message-Id: X-Mailer: git-send-email 1.8.3.1 In-Reply-To: References: X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: --- apkgrel.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apkgrel.in b/apkgrel.in index 645637d..83c89fd 100644 --- a/apkgrel.in +++ b/apkgrel.in @@ -43,9 +43,9 @@ do_set() { do_add () { local f= old= - for f in "$@"; do + for f; do [ -n "$only_clean_git" ] \ - && [ -n "$(git diff --name-only $f)" ] \ + && [ -n "$(git diff --name-only "$f")" ] \ && continue [ -d "$f" ] && f="$f/APKBUILD" old=$(show_plain "$f") @@ -57,7 +57,7 @@ do_add () { do_verify() { [ -n "$force" ] && return 0 local f= rc=0 - for f in "$@"; do + for f; do [ -d "$f" ] && f="$f/APKBUILD" if ! grep -q '^pkgrel=[0-9]' "$f"; then echo "$f: Has no proper pkgrel" >&2 -- 1.8.3.1 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---