Set up node environment so version macthes user's shell

This commit is contained in:
Kenneth Geisshirt 2017-11-10 11:08:45 +01:00 committed by blagoev
parent 8e4ee90424
commit 5f77c835a8
1 changed files with 1 additions and 1 deletions

View File

@ -888,7 +888,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "node ../scripts/download-realm.js ios --sync";
shellScript = "if [[ -s \"$HOME/.nvm/nvm.sh\" ]]; then\n . \"$HOME/.nvm/nvm.sh\"\n NVM_DIR=\"$HOME/.nvm\"\nelif [[ -x \"$(command -v brew)\" && -s \"$(brew --prefix nvm)/nvm.sh\" ]]; then\n . \"$(brew --prefix nvm)/nvm.sh\"\n NVM_DIR=\"$(brew --prefix)\"\nfi\nnode ../scripts/download-realm.js ios --sync";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */