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

improve grep search parameters

remove v from results
parent a334d63e
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -43,7 +43,7 @@ qc_nvm() {
lkm_has nvm || lkm_error "nvm install failed"
 
# get latest version
node_v=$(nvm ls-remote | grep "v${NODE_LTS_V}.*\.*" | tr -d ' ' | cut -d'(' -f1 | tail -1)
node_v=$(nvm ls-remote | grep "${NODE_LTS_V}.[[:digit:]].[[:digit:]]" | tr -d 'v ' | 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