From dfb132b901e8a8f1cf5c9bb383ebd5a77956500e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sun, 20 Jan 2019 14:21:39 +0000 Subject: [PATCH] only install rust crates if they are not there yet --- common/configure_fresh_system.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/configure_fresh_system.sh b/common/configure_fresh_system.sh index a86e15ad..d61d3737 100755 --- a/common/configure_fresh_system.sh +++ b/common/configure_fresh_system.sh @@ -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