From 322e81086beb37f93d74a72f7501216eee5eda8f Mon Sep 17 00:00:00 2001 From: irengrig Date: Wed, 22 Aug 2018 16:02:18 +0200 Subject: [PATCH] correct linking for osx, use basename (#56) --- tools/build_defs/utils_osx.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/build_defs/utils_osx.sh b/tools/build_defs/utils_osx.sh index b839b0ba..81acdea2 100644 --- a/tools/build_defs/utils_osx.sh +++ b/tools/build_defs/utils_osx.sh @@ -90,7 +90,7 @@ function symlink_to_dir() { mkdir -p ${target} if [[ -d $1 ]]; then - local dir_name="$(dirname "$1")" + local dir_name="$(basename "$1")" ln -s $1 ${target}/${dir_name} elif [[ -f $1 ]]; then ln -s $1 ${target}