Test sleep instead of asking for user input for a reboot

This commit is contained in:
2024-03-31 11:44:48 +01:00
parent c9800ef822
commit 7b3e613a35
2 changed files with 6 additions and 3 deletions

View File

@@ -61,7 +61,7 @@ ln -s $HOME/dotfiles/home.nix $HOME/.config/home-manager/home.nix
home-manager -b backup switch
echo
echo -e "${GREEN}[I] Done. Press ENTER to reboot.${ENDCOLOR}"
read
echo -e "${GREEN}[I] Done. Rebooting in 5 seconds...${ENDCOLOR}"
sleep 5
systemctl reboot