diff --git a/what-s_installed.sh b/what-s_installed.sh index 39ea575f..53b38afa 100755 --- a/what-s_installed.sh +++ b/what-s_installed.sh @@ -1,9 +1,11 @@ #!/bin/bash +PKGs=$(ls /var/adm/packages/ | sed 's|^\(.*\)-.*-.*-.*$|\1|') + for cat in a ap d l lua n wayland xap y; do cd $cat 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" done | sort cd ..