Skip to content

Commit

Permalink
bin/nvh: Normalize "NVH_USE_XZ" from environment
Browse files Browse the repository at this point in the history
Adapted from this comment:
shadowspawn#8 (comment)

Co-authored-by: John Gee <john@ruru.gen.nz>
  • Loading branch information
DeeDeeG and shadowspawn committed Sep 22, 2019
1 parent 311d1a7 commit a082f15
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bin/nvh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ NVH_NODE_DOWNLOAD_MIRROR=${NVH_NODE_DOWNLOAD_MIRROR:-https://nodejs.org/download
NVH_NODE_DOWNLOAD_MIRROR=${NVH_NODE_DOWNLOAD_MIRROR%/}
readonly NVH_NODE_DOWNLOAD_MIRROR

# Enabled by default. User may set NVH_USE_XZ to 0 to disable.
# Normalise to true/false.
# May be overridden by command line flags.

if [[ "${NVH_USE_XZ}" = "0" ]]; then
NVH_USE_XZ="false"
else
NVH_USE_XZ="true"
fi

# NVH_PRESERVE_NPM tested with -z -n
# made readonly after CLI option parsing

Expand Down

0 comments on commit a082f15

Please sign in to comment.