correct linking for osx, use basename (#56)
This commit is contained in:
parent
2c46ed501d
commit
322e81086b
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue