Commit 97f790a7 authored by Dubiousjim's avatar Dubiousjim Committed by Natanael Copa

apkgrel: tweaks to loops, add quotes

parent 59fd82d9
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment