From cae379cbcbdfe6a3f0bc347e2d22d2cec79516aa Mon Sep 17 00:00:00 2001 From: jutty Date: Sun, 14 Jul 2024 07:15:42 -0300 Subject: [PATCH] Fix cancel option not exiting function --- src/package/package_conflict_resolution.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/package/package_conflict_resolution.sh b/src/package/package_conflict_resolution.sh index 9dc5233..e73a8d6 100644 --- a/src/package/package_conflict_resolution.sh +++ b/src/package/package_conflict_resolution.sh @@ -38,6 +38,7 @@ not_on_configuration_dialog() { if [ "$strategy" = 6 ]; then log debug "[resolve_packages] User choice: Cancel or empty" + return 0 elif [ "$strategy" = 1 ]; then package_manager uninstall "$conflicted_packages" elif [ "$strategy" = 2 ]; then @@ -81,6 +82,7 @@ not_installed_dialog() { if [ "$strategy" = 6 ]; then log debug "[resolve_packages] User choice: Cancel or empty" + return 0 elif [ "$strategy" = 1 ]; then package_manager install "$conflicted_packages" elif [ "$strategy" = 2 ]; then