update: check is installed

This commit is contained in:
shenmo 2025-03-13 13:14:43 +08:00
parent 244f58ecce
commit 832b53dfc9

@ -1,2 +1,10 @@
#!/bin/bash
dpkg -l | grep "^ii $1 " > /dev/null
RET="$?"
if [[ "$RET" != "0" ]] && command -v bookworm-run > /dev/null;then
echo "Try ACE Bookworm"
bookworm-run dpkg -l | grep "^ii $1 " > /dev/null
RET="$?"
exit "$RET"
fi
exit "$RET"