Skip to content

Commit

Permalink
nvm.sh: xz check for BSD in nvm_supports_xz()
Browse files Browse the repository at this point in the history
  • Loading branch information
DeeDeeG committed Jun 25, 2020
1 parent bf08bf5 commit 06d2c1b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3717,6 +3717,10 @@ nvm_supports_xz() {
# macOS 10.8 and earlier doesn't support extracting xz-compressed tarballs with tar
return 1
fi
elif nvm_os_is_bsd; then
if ! [ -e '/usr/lib/liblzma.so' ]; then
# BSD without /usr/lib/liblzma.so doesn't support extracting xz-compressed tarballs with tar
return 1
else
# Conservatively assume other operating systems don't support extracting xz-compressed tarballs with tar
return 1
Expand Down

0 comments on commit 06d2c1b

Please sign in to comment.