Skip to content

Commit

Permalink
small change
Browse files Browse the repository at this point in the history
  • Loading branch information
excalibur1234 committed Dec 2, 2018
1 parent 3b12305 commit 7296d09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pacui
Original file line number Diff line number Diff line change
Expand Up @@ -1794,7 +1794,7 @@ function func_c
then
sudo "${EDITOR:-/usr/bin/nano}" "$file"

echo -e " \e[1;41m Do you want to regenerate the initramfs and update grub.cfg? [y|N] \e[0m"
echo -e " \e[1;41m Do you want to regenerate the initramfs and update /boot/grub/grub.cfg? [y|N] \e[0m"
read -r -n 1 -e answer # save user input in "answer" variable (only accept 1 character as input)

case ${answer:-n} in # if ENTER is pressed, the variable "answer" is empty. if "answer" is empty, its default value is "n".
Expand All @@ -1803,7 +1803,7 @@ function func_c
;;

* )
echo -e " \e[1m If /etc/mkinitcpio.conf was edited, please regenerate the initramfs and update your boot loader configuration manually. \e[0m"
echo -e " \e[1m Changes in /etc/mkinitcpio.conf will only be applied after initramfs and boot loader configuration have been regenerated! \e[0m"
;;
esac

Expand Down

0 comments on commit 7296d09

Please sign in to comment.