This repository has been archived on 2024-05-26. You can view files and clone it, but cannot push or open issues or pull requests.
core/update.sh

18 lines
216 B
Bash
Executable File

#!/usr/bin/env sh
update() {
cd "$1" || (echo "No '$1' directory" && exit 1)
cargo update && cargo upgrade
[ "$1" = "." ] || cd ..
}
update .
git add Cargo.lock Cargo.toml flake.lock
# vim: ft=sh