1
0
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:
Daniel Martí 2014-07-05 13:06:01 +02:00
parent 62ba9dc07e
commit 905e58f54c

View File

@ -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=