update source strings

This commit is contained in:
2017-03-11 03:35:15 +01:00
parent e6ad22547c
commit 577a9b3e49
2 changed files with 5 additions and 5 deletions

View File

@ -18,12 +18,12 @@ let checkNvm = async () => {
if (
(await plugins.smartshell.execSilent(`bash -c "source /usr/local/nvm/nvm.sh"`)).exitCode === 0
) {
npmciSmartshell.addSourceFiles([`/usr/local/nvm/nvm.sh && `])
npmciSmartshell.addSourceFiles([`/usr/local/nvm/nvm.sh`])
nvmAvailable.resolve(true)
} else if (
(await plugins.smartshell.execSilent(`bash -c "source ~/.nvm/nvm.sh"`)).exitCode === 0
) {
npmciSmartshell.addSourceFiles([`~/.nvm/nvm.sh && `])
npmciSmartshell.addSourceFiles([`~/.nvm/nvm.sh`])
nvmAvailable.resolve(true)
} else {
nvmAvailable.resolve(false)