about summary refs log tree commit diff stats
path: root/build/rust/update.sh
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-06-11 09:48:15 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-06-11 09:48:15 +0200
commit4f2b735472eb921b5edd91c502e0a47d5e4d0cd2 (patch)
tree35aed5a8f6b650431071e7447565ab6795b790a6 /build/rust/update.sh
parentfix(cog.toml): Update to the newest state (diff)
downloadflake-templates-4f2b735472eb921b5edd91c502e0a47d5e4d0cd2.tar.gz
flake-templates-4f2b735472eb921b5edd91c502e0a47d5e4d0cd2.zip
chore(build): Update
Diffstat (limited to '')
-rwxr-xr-xbuild/rust/update.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/build/rust/update.sh b/build/rust/update.sh
new file mode 100755
index 0000000..a0a029f
--- /dev/null
+++ b/build/rust/update.sh
@@ -0,0 +1,6 @@
+#!/usr/bin/env sh
+
+nix flake update
+
+[ "$1" = "upgrade" ] && cargo upgrade
+cargo update