Skip to content
This repository has been archived by the owner on Mar 28, 2021. It is now read-only.

Commit

Permalink
bin/nvh: Add --force-use-xz command-line flag
Browse files Browse the repository at this point in the history
Activates "force use xz" state, which skips xz-related sanity checks.
  • Loading branch information
DeeDeeG committed Sep 22, 2019
1 parent e15d140 commit 3c1481a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/nvh
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ Options:
--insecure Turn off certificate checking for https requests (may be needed from behind a proxy server)
-p, --preserve Preserve npm and npx during install of node
--use-xz Download xz-compressed tarballs, if available and extractable by tar, during install of node (this is the default)
--force-use-xz Download xz-compressed tarballs. May fail if xz tarball is not available and extractable
--no-use-xz Download gzip-compressed tarballs, rather than xz-compressed ones, during install of node
-V, --version Output version of nvh
Expand Down Expand Up @@ -1200,6 +1201,7 @@ function main() {
-p|--preserve) NVH_PRESERVE_NPM="true" ;;
--no-preserve) NVH_PRESERVE_NPM="" ;;
--use-xz) NVH_USE_XZ="true"; g_xz_force_enabled="false" ;;
--force-use-xz) NVH_USE_XZ="true"; g_xz_force_enabled="true" ;;
--no-use-xz) NVH_USE_XZ="false" ;;
-V|--version) echo "${VERSION}"; exit ;;
-*) abort "unrecognised option '$1'"; exit 1 ;;
Expand Down

0 comments on commit 3c1481a

Please sign in to comment.