First tests with audible prompt worked, so changed the subscripts to use the same method. It should now use audible prompt when available and not give an error if it is not available.

This commit is contained in:
Storm Dragon
2023-08-19 17:09:54 -04:00
parent 88e4b13a71
commit f114eb4859
5 changed files with 25 additions and 25 deletions

View File

@ -1,13 +1,13 @@
install_package() {
# If for some reason we have to change AUR helpers, this function should make it easy to update everything all at once.
# make sure system is up to date
yay --sudoflags "-A" --sudoloop --noconfirm -Syu
yay --sudoflags "-A" --sudoloop --needed --noconfirm -Sy "$@"
yay --sudoflags "${sudoFlags[@]}" --sudoloop --noconfirm -Syu
yay --sudoflags "${sudoFlags[@]}" --sudoloop --needed --noconfirm -Sy "$@"
}
restart() {
if dialog --clear --backtitle "Stormux" --yesno "Would you like to reboot now to apply changes?" 10 80 ; then
sudo reboot
sudo "${sudoFlags[@]}" reboot
fi
}