Don't check nodejs version right away
This commit is contained in:
parent
4055590fcc
commit
2ff74be399
|
@ -98,11 +98,6 @@ function mesh_install_nodejs {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$mesh_install_nodejs_prefix apt-get -yq install nodejs
|
$mesh_install_nodejs_prefix apt-get -yq install nodejs
|
||||||
CURR_NODE_VERSION=$(node --version)
|
|
||||||
if [[ "$CURR_NODE_VERSION" != "v${NODEJS_VERSION}" ]]; then
|
|
||||||
echo $"Expected node version $NODEJS_VERSION but actually have $CURR_NODE_VERSION"
|
|
||||||
exit 5274527
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -f $rootdir/usr/bin/nodejs ]; then
|
if [ -f $rootdir/usr/bin/nodejs ]; then
|
||||||
cp $rootdir/usr/bin/nodejs $rootdir/usr/bin/node
|
cp $rootdir/usr/bin/nodejs $rootdir/usr/bin/node
|
||||||
|
|
Loading…
Reference in New Issue