pika-kernel-manager/data/scripts/check-pkg.sh
Ward from fusion-voyager-3 9916e48906
All checks were successful
PikaOS Package Build & Release (amd64-v3) / build (push) Successful in 2m14s
Use dpkg status
2024-09-02 03:42:16 +03:00

10 lines
163 B
Bash
Executable File

#! /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