Skip to content

Commit

Permalink
bin/nvh: Use can_use_xz to gate xz usage
Browse files Browse the repository at this point in the history
If can_use_xz() checks fail, revert to using gzip.
  • Loading branch information
DeeDeeG committed Sep 21, 2019
1 parent 707f70f commit 354ef91
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 @@ -676,6 +676,8 @@ function install() {
fi
fi

[[ "${NVH_USE_XZ}" = "true" ]] && can_use_xz "${resolved_version}" || NVH_USE_XZ="false"

echo
install_log "installing" "${g_mirror_folder_name}/${resolved_version}"

Expand Down

0 comments on commit 354ef91

Please sign in to comment.