[what-s_installed.sh] fixed

This commit is contained in:
Gwenhael Le Moine 2022-03-02 21:29:57 +01:00
parent 51767f8fc8
commit 57e95eb8dd
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -1,9 +1,11 @@
#!/bin/bash #!/bin/bash
PKGs=$(ls /var/adm/packages/ | sed 's|^\(.*\)-.*-.*-.*$|\1|')
for cat in a ap d l lua n wayland xap y; do for cat in a ap d l lua n wayland xap y; do
cd $cat cd $cat
for p in $(ls -1); do for p in $(ls -1); do
ls /var/adm/packages/ | grep -q $(echo $p | tr -d /) && echo -n "✓: " || echo -n "❌: " echo $PKGs | grep -q "\ $(echo $p | tr -d /)\ " && echo -n "✓: " || echo -n "❌: "
echo "$cat/$p" echo "$cat/$p"
done | sort done | sort
cd .. cd ..