diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-06-11 08:17:24 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-06-11 08:17:24 +0200 |
commit | 52a2e385bd5fcc94a5cc2fce780e24b904499dba (patch) | |
tree | a67d5d942a0bce496784dfb676867b806c3f2e79 /templates | |
parent | feat(templates/latex): Name the `main.tex` file after the project (diff) | |
download | flake-templates-52a2e385bd5fcc94a5cc2fce780e24b904499dba.tar.gz flake-templates-52a2e385bd5fcc94a5cc2fce780e24b904499dba.zip |
fix(templates/rust/update.sh): Frist `upgrade` then `update`
`cargo upgrade` raises the update boundaries in `Cargo.toml`, whilst `cargo update` just fetches the newest version (that conform to the boundaries) for `Cargo.lock`.
Diffstat (limited to '')
-rwxr-xr-x | templates/rust/update.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/rust/update.sh b/templates/rust/update.sh index b34dabf..a0a029f 100755 --- a/templates/rust/update.sh +++ b/templates/rust/update.sh @@ -1,5 +1,6 @@ #!/usr/bin/env sh nix flake update -cargo update + [ "$1" = "upgrade" ] && cargo upgrade +cargo update |