Skip to content

Commit

Permalink
Make nvm finally work.
Browse files Browse the repository at this point in the history
  • Loading branch information
kabalin committed Feb 1, 2021
1 parent 27be3bf commit 786751d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ jobs:
echo "TRAVIS_BUILD_DIR="$(cd ../moodle-local_travis; pwd) >> $GITHUB_ENV
# PHPUnit depends on en_AU.UTF-8 locale
sudo locale-gen en_AU.UTF-8
# Define NVM_DIR pointing to nvm installation.
echo "NVM_DIR=$HOME/.nvm" >> $GITHUB_ENV
- name: Install moodle-plugin-ci
run: moodle-plugin-ci install -vvv
Expand Down
2 changes: 1 addition & 1 deletion src/Installer/VendorInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function stepCount()
*/
public function canInstallNode()
{
return getenv('NVM_DIR') && getenv('NVM_BIN');
return !empty(getenv('NVM_DIR'));
}

/**
Expand Down

0 comments on commit 786751d

Please sign in to comment.