Skip to content

Commit

Permalink
Npm log level exclusion for 0.10 and 0.12 (#155)
Browse files Browse the repository at this point in the history
* Don't set npm log info for 0.10 and 0.12.

Reference: #57, #144
  • Loading branch information
chorrell committed Apr 18, 2016
1 parent f5bcf5c commit 5bde647
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ for version in "${versions[@]}"; do
cp $template $dockerfile
sed -E -i.bak 's/^(ENV NODE_VERSION |FROM node:).*/\1'"$version.$fullVersion"'/' "$dockerfile"
rm "$dockerfile.bak"

# Don't set npm log level in 0.10 and 0.12.
if [[ "$version" == "0.10" || "$version" == "0.12" ]]; then
sed -E -i.bak '/^ENV NPM_CONFIG_LOGLEVEL info/d' "$dockerfile"
rm "$dockerfile.bak"
fi

)
done
Expand Down

0 comments on commit 5bde647

Please sign in to comment.