From 7b3e613a35e20f9dc647c15e633a1c73480e6f54 Mon Sep 17 00:00:00 2001 From: TrudeEH Date: Sun, 31 Mar 2024 11:44:48 +0100 Subject: [PATCH] Test sleep instead of asking for user input for a reboot --- README.md | 5 ++++- install.sh | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e6dff0d8..b5b9a650 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,10 @@ The install script works on Linux and macOS. The configuration is done through home-manager. If you would like to use this repository, I recommend forking it and editing home.nix to your liking. -Install: `curl -L https://raw.githubusercontent.com/TrudeEH/dotfiles/main/install.sh | bash` +## Install +```sh +curl -L https://raw.githubusercontent.com/TrudeEH/dotfiles/main/install.sh | bash +``` ## Dependencies - Nix (installed automatically) diff --git a/install.sh b/install.sh index 60823a70..ce932e8a 100755 --- a/install.sh +++ b/install.sh @@ -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