summary refs log tree commit diff stats
path: root/update.sh
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-23 18:38:26 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-23 18:38:26 +0100
commitf92b8b3c229582f3f7095a68df554f9a535ca702 (patch)
tree1cf5519f73abae8ad627b49856ca010c82d3068c /update.sh
parentfeat(pkgs/back): Init (diff)
downloadnixos-server-f92b8b3c229582f3f7095a68df554f9a535ca702.tar.gz
nixos-server-f92b8b3c229582f3f7095a68df554f9a535ca702.zip
feat(pkgs): Hook up to the flake and add needed infrastructure
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/update.sh b/update.sh
new file mode 100755
index 0000000..c43b80b
--- /dev/null
+++ b/update.sh
@@ -0,0 +1,14 @@
+#!/usr/bin/env sh
+__update_sh_run() {
+    __update_sh_command="$1"
+    shift 1
+
+    printf "\033[35;1m> \033[0m\033[35;1m%s\033[0m\n" "Running '$(basename "$__update_sh_command")' .."
+
+    "$__update_sh_command" "$@"
+
+    unset __update_sh_command
+}
+
+__update_sh_run ./pkgs/update_pkgs.sh "$@"
+# vim: ft=sh