aboutsummaryrefslogtreecommitdiffstats
path: root/update.sh
diff options
context:
space:
mode:
authorSoispha Peetz <soispha@b-peetz.de>2026-10-30 15:15:54 +0100
committerSoispha Peetz <soispha@b-peetz.de>2026-11-27 00:27:17 +0100
commite3c893c7df92e026309492dd1e646b7a77979656 (patch)
tree93326849419dce78ce31704425d94a18122cef3f /update.sh
parentinputs.nix: Add more deduplications and clearly denote stable/unstable nixpkgs (diff)
downloadnixos-server-e3c893c7df92e026309492dd1e646b7a77979656.zip
treewide: Various fixes
Diffstat (limited to '')
-rwxr-xr-xupdate.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/update.sh b/update.sh
index 1b10dab..90086c4 100755
--- a/update.sh
+++ b/update.sh
@@ -5,14 +5,19 @@ __update_sh_run() {
printf "\033[35;1m> \033[0m\033[35;1m%s\033[0m\n" "Running '$(basename "$__update_sh_command") $*' .."
- "$__update_sh_command" "$@"
+ if ! "$__update_sh_command" "$@"; then
+ printf "ERROR: Command failed ('%s')\n" "$__update_sh_command"
+ exit 1
+ fi
unset __update_sh_command
}
-__update_sh_run nix flake update
+__update_sh_run unflake.sh --backend=nix
__update_sh_run ./pkgs/update_pkgs.sh "$@"
__update_sh_run build.sh
__update_sh_run check.sh
+
+printf "\033[31;1m%s\033[0m\033[33;1m%s\033[0m\n" "Also update out-of-tree dependencies, like " "the external rust binaries" 2>&1
# vim: ft=sh