mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 11:52:01 +00:00
Indent install-node code block in preperation for yarn migration.
This commit is contained in:
committed by
Tim Abbott
parent
3ca34bebdc
commit
f444c68b62
@@ -19,6 +19,7 @@ if [ "$current_npm_version" = "$npm_version" ] && [ "$current_node_version" = "v
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if true; then
|
||||||
export NVM_DIR=/usr/local/nvm
|
export NVM_DIR=/usr/local/nvm
|
||||||
if ! [ -e "$NVM_DIR/nvm.sh" ]; then
|
if ! [ -e "$NVM_DIR/nvm.sh" ]; then
|
||||||
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.32.0/install.sh | bash
|
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.32.0/install.sh | bash
|
||||||
@@ -40,3 +41,4 @@ cp "$ZULIP_PATH/../../scripts/setup/node-wrapper" /usr/local/bin/node
|
|||||||
sed -i "s|NODE_PATH|$NODE_BIN|" /usr/local/bin/node
|
sed -i "s|NODE_PATH|$NODE_BIN|" /usr/local/bin/node
|
||||||
cp "$ZULIP_PATH/../../scripts/setup/npm-wrapper" /usr/local/bin/npm
|
cp "$ZULIP_PATH/../../scripts/setup/npm-wrapper" /usr/local/bin/npm
|
||||||
sed -i "s|NPM_PATH|$NPM_BIN|" /usr/local/bin/npm
|
sed -i "s|NPM_PATH|$NPM_BIN|" /usr/local/bin/npm
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user