From f7d08e99c2a2cc89498735751b3a68b09bbf1a2d Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Fri, 3 Feb 2023 18:52:08 +0530 Subject: [PATCH] improve commit 9c5f319598d3159fe678477cb51403943cba816d --- scripts/doas-pratham.sh | 9 --------- scripts/pratham-setup.sh | 6 ++++++ 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/scripts/doas-pratham.sh b/scripts/doas-pratham.sh index 986d7b8..2069f39 100755 --- a/scripts/doas-pratham.sh +++ b/scripts/doas-pratham.sh @@ -32,15 +32,6 @@ nvim +'PlugInstall' +'q' +'q' nvim +'checkhealth telescope' +'q' +'q' -################################################################################ -# Rust -################################################################################ - -curl --proto '=https' --tlsv1.3 -sSf https://sh.rustup.rs -o rust.sh -bash rust.sh -rm rust.sh - - ################################################################################ # PARU ################################################################################ diff --git a/scripts/pratham-setup.sh b/scripts/pratham-setup.sh index 02671fc..b0338cd 100755 --- a/scripts/pratham-setup.sh +++ b/scripts/pratham-setup.sh @@ -126,6 +126,12 @@ function git_repo_check() doas pacman --sync --refresh --refresh --sysupgrade # rust-lang +if ! command -v rustup > /dev/null; then + pushd /tmp + curl --proto '=https' --tlsv1.3 -sSf https://sh.rustup.rs -o rust.sh + bash rust.sh + popd +fi rustup default stable rustup update stable rustup component add rust-src rust-analyzer rust-analysis