only install rust crates if they are not there yet

This commit is contained in:
Cyryl Płotnicki 2019-01-20 14:21:39 +00:00
parent a49f982bf0
commit dfb132b901

View file

@ -129,7 +129,11 @@ if [[ -z $NORUST ]]; then
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
cargo install cargo-update rustsym ripgrep fd-find genpass
(test -x "${HOME}/.cargo/bin/cargo-install-update" || cargo install cargo-update)
(test -x "${HOME}/.cargo/bin/rg" || cargo install ripgrep)
(test -x "${HOME}/.cargo/bin/fd" || cargo install fd-find)
(test -x "${HOME}/.cargo/bin/genpass" || cargo install genpass)
set +e
cargo install-update -a
set -e