From 24750ec63642c056c4d161e0d006bfa707168148 Mon Sep 17 00:00:00 2001 From: vectorsigma72 Date: Mon, 23 Sep 2019 12:54:58 +0200 Subject: [PATCH] support for symlink for buildme --- buildme | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/buildme b/buildme index ae55eb1bc..90ac81722 100755 --- a/buildme +++ b/buildme @@ -11,7 +11,7 @@ # $1 argument override MYTOOLCHAIN variable, in case you want GCC53 for example -cd "$(dirname $0)" +cd "$(dirname $([ -L $0 ] && readlink $0 || echo $0))" declare -r CLOVERROOT="$PWD" MYTOOLCHAIN=${1:-GCC53} @@ -28,7 +28,6 @@ if [[ ! $PATH =~ (^|:)$1(:|$) ]]; then fi } - checkXCODE() { echo "[CHECK XCODE]" if [[ ! -x /usr/bin/xcodebuild ]]; then