correct linking for osx, use basename (#56)

This commit is contained in:
irengrig 2018-08-22 16:02:18 +02:00 committed by GitHub
parent 2c46ed501d
commit 322e81086b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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}