apt helpers: fix bug when var is empty...

This commit is contained in:
Alexandre Aubin 2022-01-19 20:30:11 +01:00
parent 1725da45d4
commit 7920cc6280

View file

@ -443,7 +443,7 @@ ynh_install_extra_app_dependencies() {
# Without doing apt install, an already installed dep is not upgraded
local apps_auto_installed="$(apt-mark showauto $package)"
ynh_package_install "$package"
apt-mark auto $apps_auto_installed
[ -z "$apps_auto_installed" ] || apt-mark auto $apps_auto_installed
# Remove this extra repository after packages are installed
ynh_remove_extra_repo --name=$app