mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-06 11:00:13 +02:00
Simpler fd-commit arg logic
This commit is contained in:
parent
62ba9dc07e
commit
905e58f54c
15
fd-commit
15
fd-commit
@ -42,14 +42,13 @@ while read line; do
|
||||
id=${id%.txt*}
|
||||
|
||||
if [ $# -gt 0 ]; then
|
||||
found=false
|
||||
for arg in "$@"; do
|
||||
if [ "$id" == "$arg" ]; then
|
||||
found=true
|
||||
break
|
||||
fi
|
||||
done
|
||||
$found || continue
|
||||
case "$@" in
|
||||
*" $id "*) ;; # Middle
|
||||
"$id "*) ;; # Start
|
||||
*" $id") ;; # End
|
||||
"$id") ;; # Alone
|
||||
*) continue ;; # Missing
|
||||
esac
|
||||
fi
|
||||
|
||||
[ -d metadata/$id ] && extra=metadata/$id || extra=
|
||||
|
Loading…
Reference in New Issue
Block a user