mirror of
https://github.com/89luca89/distrobox.git
synced 2026-08-19 01:14:49 -05:00
init: better detect package existence on Apt based systems
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
This commit is contained in:
+1
-1
@@ -577,7 +577,7 @@ if [ "${upgrade}" -ne 0 ] ||
|
||||
"
|
||||
install_pkg=""
|
||||
for dep in ${deps}; do
|
||||
if apt-cache show "${dep}" > /dev/null; then
|
||||
if apt-cache show "${dep}" | grep -q Package; then
|
||||
install_pkg="${install_pkg} ${dep}"
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user