mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 23:10:29 +03:00
Simpler fd-commit arg logic
This commit is contained in:
parent
62ba9dc07e
commit
905e58f54c
1 changed files with 7 additions and 8 deletions
15
fd-commit
15
fd-commit
|
|
@ -42,14 +42,13 @@ while read line; do
|
||||||
id=${id%.txt*}
|
id=${id%.txt*}
|
||||||
|
|
||||||
if [ $# -gt 0 ]; then
|
if [ $# -gt 0 ]; then
|
||||||
found=false
|
case "$@" in
|
||||||
for arg in "$@"; do
|
*" $id "*) ;; # Middle
|
||||||
if [ "$id" == "$arg" ]; then
|
"$id "*) ;; # Start
|
||||||
found=true
|
*" $id") ;; # End
|
||||||
break
|
"$id") ;; # Alone
|
||||||
fi
|
*) continue ;; # Missing
|
||||||
done
|
esac
|
||||||
$found || continue
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -d metadata/$id ] && extra=metadata/$id || extra=
|
[ -d metadata/$id ] && extra=metadata/$id || extra=
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue