forked from trinitrix/core
1
0
Fork 0
core/update.sh

18 lines
216 B
Bash
Raw Normal View History

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