Software/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh

26 lines
389 B
Bash
Executable File

#!/usr/bin/env bash
if ! flatpak update -y ; then
zenity --error \
--title="Sovran_SystemsOS Updater" \
--text="Could Not Update Flatpaks."
exit 1
fi
if ! cd /etc/nixos ; nix flake update ; nixos-rebuild switch --impure ; then
zenity --error \
--title="Sovran_SystemsOS Updater" \
--text="Could Not Update Sovran_SystemsOS"
exit 1
fi
fi
exit 0