From 066f568a53e7180b40f97f340e8396ba3fb96889 Mon Sep 17 00:00:00 2001 From: foglar Date: Wed, 1 Jan 2025 20:39:53 +0100 Subject: [PATCH] test --- install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 8093d28..b50b84a 100644 --- a/install.sh +++ b/install.sh @@ -1,5 +1,7 @@ #!/bin/sh +echo "Running script" + if [ $# -gt 0 ]; then SCRIPT_DIR=$1 else @@ -18,7 +20,7 @@ fi $EDITOR $SCRIPT_DIR/flake.nix profile=$(gum choose kogami ginoza) -sudo nixos-rebuild build --flake $SCRIPT_DIR#"${profile}" --update +sudo nixos-rebuild build --flake $SCRIPT_DIR#"${profile}" --update gum confirm "Do you want to switch to the new configuration?" && sudo nixos-rebuild switch --flake $SCRIPT_DIR#"${profile}" -gum confirm "Do you want to reboot now?" && sudo reboot +gum confirm "Do you want to reboot now?" && systemctl reboot || echo "Please reboot later, to switch to the new configuration"