'Generic Commit'
This commit is contained in:
parent
2caa800363
commit
f13fd0830a
@ -46,7 +46,7 @@ is_package_installed() {
|
||||
if [ "$OS" = "Alpine Linux" ]; then
|
||||
apk info | grep -q "^$1$"
|
||||
else
|
||||
dpkg -l "$1"
|
||||
dpkg -l "$1" 2>/dev/null 1>/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
@ -72,7 +72,7 @@ function check_packages() {
|
||||
;;
|
||||
esac
|
||||
|
||||
print_status "Checking required packages..."
|
||||
echo "Checking required packages..."
|
||||
for pkg in $PACKAGES; do
|
||||
if ! is_package_installed "$pkg"; then
|
||||
echo "Missing package: $pkg"
|
||||
|
Loading…
x
Reference in New Issue
Block a user