Skip to content
Myr

[Fix] Update `nvm_extract_tarball` to support OpenBSD

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fixes #2660.

authored by Bob Bregant II · committed by Jordan Harband · parent ccd442d · Browse files · 1 file+9 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+9 added−1 removed

  • other:+9 added−1 removed

1 file+9 added−1 removed

modified:nvm.sh+9 added-1 removed
2268 unmodified lines
2269 if [ "${NVM_OS}" = 'aix' ]; then2270 tar='gtar'2271 fi22722273 if [ "${NVM_OS}" = 'openbsd' ]; then2274 if [ "${tar_compression_flag}" = 'J' ]; then2275 command xzcat "${TARBALL}" | "${tar}" -xf - -C "${TMPDIR}" -s '/[^\/]*\///' || return 12276 else2277 command "${tar}" -x${tar_compression_flag}f "${TARBALL}" -C "${TMPDIR}" -s '/[^\/]*\///' || return 12278 fi2279 else2273 command "${tar}" -x${tar_compression_flag}f "${TARBALL}" -C "${TMPDIR}" --strip-components 1 || return 12280 command "${tar}" -x${tar_compression_flag}f "${TARBALL}" -C "${TMPDIR}" --strip-components 1 || return 12281 fi2282}22832284nvm_get_make_jobs() {2285 if nvm_is_natural_num "${1-}"; then
2056 unmodified lines