PermalinkSwitch branches/tags
Cannot retrieve contributors at this time
latest
Nothing to show
{{ refName }}default
Nothing to show
{{ refName }}defaultcli/configure
Go to file- Go to file
Copy path Copy permalink
| #!/usr/bin/env bash | |
| # set configurations that will be "sticky" on this system, | |
| # surviving npm self-updates. | |
| CONFIGS=() | |
| i=0 | |
| # get the location of this file. | |
| unset CDPATH | |
| CONFFILE=$(cd$(dirname"$0");pwd -P)/npmrc | |
| while [$#-gt 0 ];do | |
| conf="$1" | |
| case$confin | |
| --help) | |
| echo"./configure --param=value ..." | |
| exit 0 | |
| ;; | |
| --*) | |
| CONFIGS[$i]="${conf:2}" | |
| ;; | |
| *) | |
| CONFIGS[$i]="$conf" | |
| ;; | |
| esac | |
| let i++ | |
| shift | |
| done | |
| forcin"${CONFIGS[@]}";do | |
| echo"$c">>"$CONFFILE" | |
| done |

