pika-welcome/data/scripts/check-pkg.sh

10 lines
163 B
Bash
Raw Normal View History

2024-09-02 02:38:40 +02:00
#! /usr/bin/bash
export LANG=C
package=$1
if dpkg-query -W -f='${Status}' $package 2>/dev/null | grep -q "install ok installed"
then
exit 0
else
exit 1
fi