You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"unbound variable" error when running nvm from post-receive hook #1363
Running (cd /home/user/app2/2016-12-25-19.28.59 && nvm i && nvm use)
remote: Found '/home/user/app2/2016-12-25-19.28.59/.nvmrc' with version <6.9.2>
remote: /home/user/.nvm/nvm.sh: line 2250: PROVIDED_REINSTALL_PACKAGES_FROM: unbound variable
remote: /home/user/.nvm/nvm.sh: line 2253: PROVIDED_REINSTALL_PACKAGES_FROM: unbound variable
I removed this from .bashrc to make sure environment is setup properly.
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@Znarkus what bash options do you have set? what does nvm debug output? I see in your hook that you have the u and e options set, but I'm not able to reproduce these errors with that.
Either way, I can address the NVM_INSTALL_SUCCESS and NVM_FLAVOR errors.
Activity
PeterDaveHello commentedon Dec 25, 2016
I think you didn't provide enough info @Znarkus, what's the define of
post-receive hookhere? What's the shell been using here?Znarkus commentedon Dec 25, 2016
Sorry just upgraded
0.32.0->0.32.1and the error changed to:Post-receive hook:
Bash is the shell on the local computer I'm doing
git pushfrom, and bash is the default for the remote user.PeterDaveHello commentedon Dec 25, 2016
@Znarkus would you please how did you install and upgrade
nvm?Znarkus commentedon Dec 25, 2016
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | bashljharb commentedon Dec 25, 2016
@Znarkus what bash options do you have set? what does
nvm debugoutput? I see in your hook that you have theuandeoptions set, but I'm not able to reproduce these errors with that.Either way, I can address the
NVM_INSTALL_SUCCESSandNVM_FLAVORerrors.[Fix] `set -u`: ensure that potentially unbound variables aren’t call…
Revert "Revert "[Fix] `set -u`: ensure that potentially unbound varia…
[Fix] `set -u`: ensure that potentially unbound variables aren’t call…
[Fix] `set -u`: ensure that potentially unbound variables aren’t call…
Revert "Revert "[Fix] `set -u`: ensure that potentially unbound varia…