From a7fa3c165bfc9bf417241533ec00ea5bc7d6a4b0 Mon Sep 17 00:00:00 2001 From: Adam <24621027+adoyle0@users.noreply.github.com> Date: Tue, 9 Jan 2024 17:37:41 -0500 Subject: [PATCH] rust, posix --- scripts/install_arch | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/install_arch b/scripts/install_arch index 5048e10..686628f 100755 --- a/scripts/install_arch +++ b/scripts/install_arch @@ -6,7 +6,7 @@ set -e # Install yay cd -if ! type "yay" &> /dev/null; then +if [ ! "$(command -v rustup)" ]; then echo "Yay not found, installing..." @@ -48,8 +48,9 @@ if [ "$1" -ge 1 ]; then wget \ zsh \ - [ -x "$(command -v rustup)" ] && yay -S --needed --noconfirm rust - + if [ ! "$(command -v rustup)" ]; then + yay -S --needed --noconfirm rust + fi fi # Install basic GUI