Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
limistah authored Aug 14, 2024
1 parent 7933378 commit 7363564
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@ install_nodejs(){
curl -sS https://raw.githubusercontent.com/Onboardbase/onboardbase.sh/main/install_nodejs.sh | bash -
}

setup_nvm(){
load_nvm(){
NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
}

install_obb_cli(){
setup_nvm
load_nvm
log "Installing OBB CLI via npm"
npm install -g @onboardbase/cli >/dev/null 2>&1
log "OBB CLI installed successfully with version: \"$(onboardbase -v)\""
Expand Down Expand Up @@ -106,4 +105,4 @@ then
create_yml_file $ONBOARDBASE_PROJECT $ONBOARDBASE_ENVIRONMENT;
fi

log "Done!!!"
log "Done!!!"

0 comments on commit 7363564

Please sign in to comment.