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