test
This commit is contained in:
parent
8b28196951
commit
066f568a53
@ -1,5 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo "Running script"
|
||||||
|
|
||||||
if [ $# -gt 0 ]; then
|
if [ $# -gt 0 ]; then
|
||||||
SCRIPT_DIR=$1
|
SCRIPT_DIR=$1
|
||||||
else
|
else
|
||||||
@ -21,4 +23,4 @@ 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 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"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user