Skip to content

Commit 5306c0e

Browse files
Update tools/modules/functions/interface_checklist.sh
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 1de1214 commit 5306c0e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tools/modules/functions/interface_checklist.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,15 @@ function process_package_selection() {
102102
if [[ "$is_selected" == "ON" && "$current_state" == "OFF" ]]; then
103103
# Package is selected but not installed, install it
104104
echo "Installing $package..."
105-
pkg_install "$package"
105+
if ! pkg_install "$package"; then
106+
echo "Failed to install $package." >&2
107+
fi
106108
elif [[ "$is_selected" == "OFF" && "$current_state" == "ON" ]]; then
107109
# Package is deselected but installed, remove it
108110
echo "Removing $package..."
109-
pkg_remove "$package"
111+
if ! pkg_remove "$package"; then
112+
echo "Failed to remove $package." >&2
113+
fi
110114
fi
111115
done
112116

0 commit comments

Comments
 (0)