Skip to content

Commit

Permalink
init: better detect package existence on Apt based systems
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Di Maio <[email protected]>
  • Loading branch information
89luca89 committed Sep 17, 2023
1 parent ed24826 commit d0db8d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distrobox-init
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d0db8d9

Please sign in to comment.