Skip to content
Snippets Groups Projects
Commit 352cbad2 authored by Keegan Mullaney's avatar Keegan Mullaney
Browse files

text manipulation bug fixes

fix error with selecting latest ruby version
fix error with selecting latest node version
parent 9722ca6f
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -124,7 +124,7 @@ qc_install_ruby() {
# export MAKE=make
 
# install the latest stable ruby version
ruby_global_v=$(~/.rbenv/bin/rbenv install --list | tr -d ' ' | grep "^2.*.[0..9]$" | tail -1)
ruby_global_v=$(~/.rbenv/bin/rbenv install --list | tr -d ' ' | grep "^2.*\.[0-9]$" | tail -1)
[ $? -eq 0 ] && ~/.rbenv/bin/rbenv install "$ruby_global_v"
 
# set global ruby version
Loading
Loading
Loading
Loading
@@ -16,7 +16,7 @@
 
# -------------------------- SETUP PARAMETERS
 
[ -z "$QC_LTS" ] && QC_LTS=6
[ -z "$MAJOR_NODE_V" ] && MAJOR_NODE_V=6
[ -z "$NVM_V" ] && NVM_V=0.33.2
 
# -------------------------- MISSING PROGRAM CHECKS
Loading
Loading
@@ -42,8 +42,8 @@ qc_nvm() {
# make sure nvm is installed
lkm_has nvm || lkm_error "nvm install failed"
 
# get long term support version
node_v=$(nvm ls-remote | grep "v${QC_LTS}.*" | tail -1 | tr -d ' ')
# get latest version
node_v=$(nvm ls-remote | grep "v${MAJOR_NODE_V}.*\.*" | tr -d ' ' | cut -d'(' -f1 | tail -1)
 
# install nodejs
nvm install "$node_v"
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment