Skip to content

Commit

Permalink
Fix installApplication.sh script to get NVM path (#39)
Browse files Browse the repository at this point in the history
### What was the problem?

This PR resolves LISK-944.

### How was it solved?

NVM path is loaded inside `installApplication.sh` script.
  • Loading branch information
matjazv authored Aug 15, 2024
1 parent 354f236 commit 01269d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions scripts/installApplication.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

source $HOME/.bashrc

# Install application
app_dir_name=/home/ubuntu/lisk-across-relayer
cd $app_dir_name
Expand Down
6 changes: 3 additions & 3 deletions scripts/installDependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ install_nvm() {
echo "export NVM_DIR=\"\$HOME/.nvm\"" >> "$HOME/.bashrc"
echo "[ -s \"\$NVM_DIR/nvm.sh\" ] && \. \"\$NVM_DIR/nvm.sh\" # This loads nvm" >> "$HOME/.bashrc"
fi

# Ensure NVM is now available in PATH
source "$HOME/.bashrc"
}

install_node_version() {
Expand All @@ -44,6 +41,9 @@ install_node_version() {
install_nvm
fi

# Ensure NVM is now available in PATH
source "$HOME/.bashrc"

echo "Installing Node version $node_version..."
nvm install $node_version
nvm alias default $node_version
Expand Down

0 comments on commit 01269d8

Please sign in to comment.