Checks if starship is already installed

This commit is contained in:
José Roberto Sánchez
2022-10-24 23:39:28 -06:00
committed by GitHub
parent 8ddd22eac5
commit f4f69616ee

View File

@@ -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