Changed the update script to use yay instead of pacman
parent
49c1372b27
commit
e87ac90014
|
@ -8,7 +8,7 @@ ICON_FAILURE=/usr/share/icons/breeze/status/64/dialog-error.svg
|
|||
choice=$(kdialog --yesno "Inizierò a creare una snapshot e poi aggiornerò il sistema. Vuoi procedere?" --title "Aggiornamento");
|
||||
|
||||
if [ "$?" = 0 ]; then
|
||||
echo "Inizio l'aggiornamento del sistema..." && sudo timeshift --delete-all && sudo timeshift --create && sudo pacman -Syu --noconfirm && echo "Aggiornamento completato. Puoi chiudere questa finestra." && notify-send "Aggiornamento completato" "Il sistema è stato aggiornato." -a Aggiornamenti -i $ICON_SUCCESS || echo "Si è verificato un errore durante l'aggiornamento." || notify-send "Aggiornamento fallito" "Si è verificato un errore durante l'aggiornamento. Controlla il terminale." -a Aggiornamenti -i $ICON_FAILURE;
|
||||
echo "Inizio l'aggiornamento del sistema..." && sudo timeshift --delete-all && sudo timeshift --create && yay -Syu --noconfirm && echo "Aggiornamento completato. Puoi chiudere questa finestra." && notify-send "Aggiornamento completato" "Il sistema è stato aggiornato." -a Aggiornamenti -i $ICON_SUCCESS || echo "Si è verificato un errore durante l'aggiornamento." || notify-send "Aggiornamento fallito" "Si è verificato un errore durante l'aggiornamento. Controlla il terminale." -a Aggiornamenti -i $ICON_FAILURE;
|
||||
elif [ "$?" = 1 ]; then
|
||||
echo "Aggiornamento annullato. Puoi chiudere questa finestra.";
|
||||
fi;
|
Reference in New Issue