diff options
Diffstat (limited to 'templates/rust/update.sh')
-rwxr-xr-x | templates/rust/update.sh | 6 |
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 |