From cc7f1e181cedeed34eab9793aa20122f136e2c1b Mon Sep 17 00:00:00 2001 From: minmingzhu Date: Wed, 23 Oct 2024 16:38:47 +0800 Subject: [PATCH] update --- mllib-dal/build.sh | 4 ++-- mllib-dal/src/main/native/build.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mllib-dal/build.sh b/mllib-dal/build.sh index 57e5e9e4b..7f30a0771 100755 --- a/mllib-dal/build.sh +++ b/mllib-dal/build.sh @@ -13,11 +13,11 @@ fi if [[ -n $DAALROOT ]]; then if [[ -e $DAALROOT ]]; then - export ONEDAL_VERSION=$(echo "$DAALROOT" | awk -F '/' '{print $(NF)}') + export ONEDAL_VERSION=$(readlink -f "$DAALROOT" | awk -F '/' '{print $(NF)}') fi elif [[ -n $DALROOT ]]; then if [[ -e $DALROOT ]]; then - export ONEDAL_VERSION=$(echo "$DALROOT" | awk -F '/' '{print $(NF)}') + export ONEDAL_VERSION=$(readlink -f "$DALROOT" | awk -F '/' '{print $(NF)}') fi else echo DAALROOT not defined! diff --git a/mllib-dal/src/main/native/build.sh b/mllib-dal/src/main/native/build.sh index 79d934a3b..3fb52d2b3 100755 --- a/mllib-dal/src/main/native/build.sh +++ b/mllib-dal/src/main/native/build.sh @@ -21,11 +21,11 @@ fi if [[ -z $ONEDAL_VERSION ]]; then if [[ -n $DAALROOT ]]; then if [[ -e $DAALROOT ]]; then - export ONEDAL_VERSION=$(echo "$DAALROOT" | awk -F '/' '{print $(NF)}') + export ONEDAL_VERSION=$(readlink -f "$DAALROOT" | awk -F '/' '{print $(NF)}') fi elif [[ -n $DALROOT ]]; then if [[ -e $DALROOT ]]; then - export ONEDAL_VERSION=$(echo "$DALROOT" | awk -F '/' '{print $(NF)}') + export ONEDAL_VERSION=$(readlink -f "$DALROOT" | awk -F '/' '{print $(NF)}') fi else echo DAALROOT not defined!