apkgrel: tweaks to loops, add quotes
This commit is contained in:
parent
59fd82d944
commit
97f790a731
|
@ -43,9 +43,9 @@ do_set() {
|
||||||
|
|
||||||
do_add () {
|
do_add () {
|
||||||
local f= old=
|
local f= old=
|
||||||
for f in "$@"; do
|
for f; do
|
||||||
[ -n "$only_clean_git" ] \
|
[ -n "$only_clean_git" ] \
|
||||||
&& [ -n "$(git diff --name-only $f)" ] \
|
&& [ -n "$(git diff --name-only "$f")" ] \
|
||||||
&& continue
|
&& continue
|
||||||
[ -d "$f" ] && f="$f/APKBUILD"
|
[ -d "$f" ] && f="$f/APKBUILD"
|
||||||
old=$(show_plain "$f")
|
old=$(show_plain "$f")
|
||||||
|
@ -57,7 +57,7 @@ do_add () {
|
||||||
do_verify() {
|
do_verify() {
|
||||||
[ -n "$force" ] && return 0
|
[ -n "$force" ] && return 0
|
||||||
local f= rc=0
|
local f= rc=0
|
||||||
for f in "$@"; do
|
for f; do
|
||||||
[ -d "$f" ] && f="$f/APKBUILD"
|
[ -d "$f" ] && f="$f/APKBUILD"
|
||||||
if ! grep -q '^pkgrel=[0-9]' "$f"; then
|
if ! grep -q '^pkgrel=[0-9]' "$f"; then
|
||||||
echo "$f: Has no proper pkgrel" >&2
|
echo "$f: Has no proper pkgrel" >&2
|
||||||
|
|
Loading…
Reference in New Issue