Skip to content

Commit

Permalink
use gtar on solaris
Browse files Browse the repository at this point in the history
  • Loading branch information
bjia56 authored Nov 21, 2024
1 parent aada278 commit 3099001
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions scripts/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,25 @@ function download_and_verify () {
verify_checksum $file
}

function download_verify_extract () {
#set -x
file="$1"
download_and_verify $file
tar -xf $file
rm $file
#set +x
}
if [[ "${PLATFORM}" == "solaris"* ]]; then
function download_verify_extract () {
#set -x
file="$1"
download_and_verify $file
gtar -xf $file
rm $file
#set +x
}
else
function download_verify_extract () {
#set -x
file="$1"
download_and_verify $file
tar -xf $file
rm $file
#set +x
}
fi

ARCH=$1
PYTHON_FULL_VER=$2
Expand Down

0 comments on commit 3099001

Please sign in to comment.