Skip to content

Commit

Permalink
Merge pull request #180 from AntelopeIO/fix_relative_path_main
Browse files Browse the repository at this point in the history
[3.1 -> main] pinned_build.sh: make relative path work
  • Loading branch information
linh2931 authored Sep 16, 2022
2 parents 9b49989 + 94378c4 commit 471b08e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/pinned_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ if [ $# -eq 0 ] || [ -z "$1" ]
fi

CORE_SYM=EOS
DEP_DIR=$1
# CMAKE_C_COMPILER requires absolute path
DEP_DIR=`realpath $1`
LEAP_DIR=$2
JOBS=$3
CLANG_VER=11.0.1
Expand All @@ -49,7 +50,8 @@ popdir() {
echo ${D}
D=`eval echo $D | head -n1 | cut -d " " -f1`

if [[ ${D} != ${EXPECTED} ]]; then
# -ef compares absolute paths
if ! [[ ${D} -ef ${EXPECTED} ]]; then
echo "Directory is not where expected EXPECTED=${EXPECTED} at ${D}"
exit 1
fi
Expand Down

0 comments on commit 471b08e

Please sign in to comment.