From 4b29bba320a3060751eccf97e4bea8a24cbb9b0f Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Tue, 5 Dec 2023 18:36:51 -0800 Subject: [PATCH] updated updater --- .../Updater Source Files/Update_Sovran_SystemsOS.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh b/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh index 6d3d3a1..a5c8e56 100755 --- a/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh +++ b/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +SSH=$(ssh root@localhost) + curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovran_SystemsOS_Updater/Updater%20Source%20Files/Intro.md" | zenity --text-info \ @@ -13,7 +15,7 @@ if [[ $? -eq 1 ]]; then else - if ! ssh root@localhost 'flatpak update -y' ; then + if ! $SSH 'flatpak update -y' ; then zenity --error \ --title="Sovran_SystemsOS Updater" \ @@ -24,7 +26,7 @@ else fi - if ! ssh root@localhost 'cd /etc/nixos ; nix flake update ; nixos-rebuild switch --impure' ; then + if ! $SSH 'cd /etc/nixos ; nix flake update ; nixos-rebuild switch --impure' ; then zenity --error \ --title="Sovran_SystemsOS Updater" \