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
|
if [[ "$CURR_N_VERSION" != "$NODEJS_N_VERSION" ]]; then
|
||||||
npm upgrade -g n@${NODEJS_N_VERSION} --save
|
npm upgrade -g n@${NODEJS_N_VERSION} --save
|
||||||
fi
|
fi
|
||||||
if [[ "$CURR_NODE_VERSION" != "$NODEJS_VERSION" ]]; then
|
if [[ "$CURR_NODE_VERSION" != "v${NODEJS_VERSION}" ]]; then
|
||||||
n {NODEJS_VERSION}
|
n {NODEJS_VERSION}
|
||||||
fi
|
fi
|
||||||
cp /usr/local/bin/n /usr/bin/n
|
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"
|
echo $"Expected n version $NODEJS_N_VERSION but actually have $CURR_N_VERSION"
|
||||||
exit 5267452
|
exit 5267452
|
||||||
fi
|
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"
|
echo $"Expected node version $NODEJS_VERSION but actually have $CURR_NODE_VERSION"
|
||||||
exit 5274527
|
exit 5274527
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue