Fix xcode project to use nvm’s node if node is not global

This commit is contained in:
blagoev 2017-09-30 16:44:02 +03:00
parent 0b439d6c79
commit 4178ba09a4

View File

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