can pass cat
This commit is contained in:
parent
169099e0a9
commit
d62f2e9be9
1 changed files with 2 additions and 1 deletions
|
@ -7,7 +7,8 @@ PKGs=$(ls /var/lib/pkgtools/packages/ | sed 's|^\(.*\)-.*-.*-.*$|\1|')
|
|||
PKG_OK="| x "
|
||||
PKG_KO="| "
|
||||
|
||||
for cat in a ap d fonts l n xap y; do
|
||||
cats=${1:-a ap d fonts l n xap y}
|
||||
for cat in $cats; do
|
||||
cd $cat
|
||||
for p in $(ls -1); do
|
||||
echo $PKGs | grep -q " $(echo $p | tr -d /) " && echo -n "$PKG_OK" || echo -n "$PKG_KO"
|
||||
|
|
Loading…
Add table
Reference in a new issue