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:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user