From 309900116f478e12c1a514d8b122516975d34b01 Mon Sep 17 00:00:00 2001 From: Brett Jia Date: Thu, 21 Nov 2024 15:16:44 -0500 Subject: [PATCH] use gtar on solaris --- scripts/utils.sh | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/scripts/utils.sh b/scripts/utils.sh index 4f024498..350f67b7 100644 --- a/scripts/utils.sh +++ b/scripts/utils.sh @@ -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