Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Symbolic link source item can't be found

I'm trying to make an alias of a directory in a set of directories

for D in $(find * -maxdepth 0 -type d) ; do
    ln -s location/to/directory/ $D/Test2 ;
done

It looks like the link is made correctly (I can see it in my finder window), but when I double click it, I get the error The operation can't be completed because the original item for "Test2" can't be found.

Why doesn't this work? Is there a way from a bash script to make a "normal" mac alias? I have opened up the permissions, as suggested here, without any luck.

like image 881
1252748 Avatar asked Apr 20 '15 21:04

1252748


1 Answers

Use the absolute source path while creating the link. That worked for me having the same issue.

like image 50
Joey Pinto Avatar answered Nov 04 '22 17:11

Joey Pinto