Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92466440
configure
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Nov 20, 13:28
Size
521 B
Mime Type
text/x-shellscript
Expires
Fri, Nov 22, 13:28 (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
22427456
Attached To
R2664 SHRINE MedCo Fork
configure
View Options
#!/bin/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 $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 "$c" >> "$CONFFILE"
done
Event Timeline
Log In to Comment