Set up node environment so version macthes user's shell
This commit is contained in:
parent
8e4ee90424
commit
5f77c835a8
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue