about summary refs log tree commit diff stats
path: root/templates/rust/update.sh
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-03-31 18:22:20 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-03-31 23:59:58 +0200
commit43655648a602b5b21e10dc69726d0d351bec8056 (patch)
tree39a2d11066355556006e7f61cd8cf1044377a21b /templates/rust/update.sh
parentrefactor(rust): Move to template dir (diff)
downloadflake-templates-43655648a602b5b21e10dc69726d0d351bec8056.tar.gz
flake-templates-43655648a602b5b21e10dc69726d0d351bec8056.zip
feat(rust): Update to my SOTA
Diffstat (limited to '')
-rwxr-xr-xtemplates/rust/update.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/rust/update.sh b/templates/rust/update.sh
index 9268caf..b34dabf 100755
--- a/templates/rust/update.sh
+++ b/templates/rust/update.sh
@@ -1,3 +1,5 @@
-#!/bin/sh
+#!/usr/bin/env sh
 
-cargo update && cargo upgrade
+nix flake update
+cargo update
+[ "$1" = "upgrade" ] && cargo upgrade