Install updater
This commit is contained in:
parent
cfa721db33
commit
7797f2eede
|
@ -62,11 +62,14 @@ update() {
|
||||||
|
|
||||||
cargo install-update --help > /dev/null 2>&1
|
cargo install-update --help > /dev/null 2>&1
|
||||||
|
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "\033[32;1m=== Installing rust packages updater ===\033[0m"
|
||||||
|
cargo install cargo-update
|
||||||
|
fi
|
||||||
|
|
||||||
echo "\033[32;1m=== Updating rust packages ===\033[0m"
|
echo "\033[32;1m=== Updating rust packages ===\033[0m"
|
||||||
cargo install-update -ag
|
cargo install-update -ag
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
# Update the dotfiles
|
# Update the dotfiles
|
||||||
pull-dotfiles
|
pull-dotfiles
|
||||||
|
|
Loading…
Reference in New Issue