Skip to content

Instantly share code, notes, and snippets.

@cory-ko-g
Created May 12, 2011 08:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cory-ko-g/968169 to your computer and use it in GitHub Desktop.
Save cory-ko-g/968169 to your computer and use it in GitHub Desktop.
59c59,60
< VERSION=`(cd $NVM_DIR; \ls -d v${PATTERN}* 2>/dev/null) | sort -t. -k 2,1n -k 2,2n -k 3,3n | tail -n1`
---
> GET_VERSION="ls -d v${PATTERN}* 2>/dev/null"
> VERSION=`(cd $NVM_DIR; echo ${GET_VERSION} | sh) | sort -t. -k 2,1n -k 2,2n -k 3,3n | tail -n1`
187c188,189
< (cd $NVM_DIR/alias && for ALIAS in `\ls $2* 2>/dev/null`; do
---
> COMMAND="ls $2* 2>/dev/null"
> (cd $NVM_DIR/alias && for ALIAS in `echo ${COMMAND} | sh`; do
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment