Fix cancel option not exiting function

This commit is contained in:
Juno Takano 2024-07-14 07:15:42 -03:00
parent aa3b2fc876
commit cae379cbcb

View file

@ -38,6 +38,7 @@ not_on_configuration_dialog() {
if [ "$strategy" = 6 ]; then if [ "$strategy" = 6 ]; then
log debug "[resolve_packages] User choice: Cancel or empty" log debug "[resolve_packages] User choice: Cancel or empty"
return 0
elif [ "$strategy" = 1 ]; then elif [ "$strategy" = 1 ]; then
package_manager uninstall "$conflicted_packages" package_manager uninstall "$conflicted_packages"
elif [ "$strategy" = 2 ]; then elif [ "$strategy" = 2 ]; then
@ -81,6 +82,7 @@ not_installed_dialog() {
if [ "$strategy" = 6 ]; then if [ "$strategy" = 6 ]; then
log debug "[resolve_packages] User choice: Cancel or empty" log debug "[resolve_packages] User choice: Cancel or empty"
return 0
elif [ "$strategy" = 1 ]; then elif [ "$strategy" = 1 ]; then
package_manager install "$conflicted_packages" package_manager install "$conflicted_packages"
elif [ "$strategy" = 2 ]; then elif [ "$strategy" = 2 ]; then