Skip to content
This repository
tag: v1.0.12
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 35 lines (29 sloc) 0.509 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
#!/bin/bash

# this is a wicked hack, but whatever.

CONFIGS=()
i=0

while [ $# -gt 0 ]; do
conf="$1"
  case $conf in
    --help)
      echo "./configure --param=value ..."
      exit 0
      ;;
    --*)
      CONFIGS[$i]="${conf:2}"
      ;;
    *)
      CONFIGS[$i]="$conf"
      ;;
  esac
let i++
  shift
done

for c in "${CONFIGS[@]}"; do
echo '+node ./bin/npm.js config set "'"$c"'"'
  node ./bin/npm.js config set "$c"
done
echo

echo +node ./bin/npm.js config ls
echo
node ./bin/npm.js config ls
Something went wrong with that request. Please try again.