Verified Commit b5dc682d authored by likewhoa's avatar likewhoa
Browse files

Rework of update 21 to fix issues with update 06. Thanks Pavel!

parent 94326286
......@@ -385,14 +385,27 @@ _update_20() {
# Perform System Update
_update_21() {
local _pacman
if _is_dojo "${ronin_dojo_menu}"; then
printf "%s\n***\nPerfoming a full system update...\n***\n%s" "${red}" "${nc}"
_dojo_check && _stop_dojo
_pause continue
# Modify pacman.conf and comment ignore packages line
if test -f "$HOME"/.config/RoninDojo/data/updates/06-*; then
sudo sed -i "s:^IgnorePkg =.*$:#IgnorePkg = ${pkg_ignore[*]}:" /etc/pacman.conf
# Update system packages
sudo pacman -Syyu --noconfirm
# Uncomment IgnorePkg if necessary
${_pacman} && sudo sed -i "s:^#IgnorePkg =.*$:IgnorePkg = ${pkg_ignore[*]}:" /etc/pacman.conf
printf "%s\n***\nSystem update complete, restarting system...\n***\n%s" "${red}" "${nc}"
_pause reboot
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment