v prefix
This commit is contained in:
parent
1999bf62ab
commit
650fb2e2df
|
@ -118,7 +118,7 @@ function upgrade_nodejs {
|
|||
if [[ "$CURR_N_VERSION" != "$NODEJS_N_VERSION" ]]; then
|
||||
npm upgrade -g n@${NODEJS_N_VERSION} --save
|
||||
fi
|
||||
if [[ "$CURR_NODE_VERSION" != "$NODEJS_VERSION" ]]; then
|
||||
if [[ "$CURR_NODE_VERSION" != "v${NODEJS_VERSION}" ]]; then
|
||||
n {NODEJS_VERSION}
|
||||
fi
|
||||
cp /usr/local/bin/n /usr/bin/n
|
||||
|
@ -198,7 +198,7 @@ EOF
|
|||
echo $"Expected n version $NODEJS_N_VERSION but actually have $CURR_N_VERSION"
|
||||
exit 5267452
|
||||
fi
|
||||
if [[ "$CURR_NODE_VERSION" != "$NODEJS_VERSION" ]]; then
|
||||
if [[ "$CURR_NODE_VERSION" != "v${NODEJS_VERSION}" ]]; then
|
||||
echo $"Expected node version $NODEJS_VERSION but actually have $CURR_NODE_VERSION"
|
||||
exit 5274527
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue