You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(scripts): update check_and_install_packages to always update packages
The check_and_install_packages function has been updated to always run `pacman -Syu` on the passed packages. This ensures that the packages are not only installed, but also updated to their latest versions. The check with `pacman -Q` has been removed.
echo"Failed to install packages. If you're getting an error about a missing secret key, you might need to manually import the key. Refer to the Arch Linux wiki for more information: https://wiki.archlinux.org/title/Pacman/Package_signing#Adding_unofficial_keys"
113
-
exit 1
114
-
fi
103
+
echo_msg "Installing and updating packages ($*)..."
104
+
if! pacman -Syu --needed --noconfirm "$@";then
105
+
echo"Failed to install or update packages. If you're getting an error about a missing secret key, you might need to manually import the key. Refer to the Arch Linux wiki for more information: https://wiki.archlinux.org/title/Pacman/Package_signing#Adding_unofficial_keys"
106
+
exit 1
115
107
fi
116
108
117
-
echo_msg "OK. All packages (${*}) installed or already present."
109
+
echo_msg "OK. All packages (${*}) installed or updated."
0 commit comments