From f4f69616ee0600348ec0a0a9d095453b436e2b60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Roberto=20S=C3=A1nchez?= Date: Mon, 24 Oct 2022 23:39:28 -0600 Subject: [PATCH] Checks if starship is already installed --- setup.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/setup.sh b/setup.sh index 86a778a..fadb91f 100755 --- a/setup.sh +++ b/setup.sh @@ -37,6 +37,12 @@ installDepend(){ } installStarship(){ + STARSHIP_CMD==$(which starship) + if [[ ! -z $STARSHIP_CMD ]]; then + echo "Starship already installed" + exit 0; + fi + if ! curl -sS https://starship.rs/install.sh|sh;then echo -e "${RED}Something went wrong during starship install!${RC}" exit 1