mirror of
https://github.com/ChrisTitusTech/mybash.git
synced 2026-04-03 11:08:28 +00:00
Checks if starship is already installed
This commit is contained in:
committed by
GitHub
parent
8ddd22eac5
commit
f4f69616ee
6
setup.sh
6
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
|
||||
|
||||
Reference in New Issue
Block a user