The ln version of osx does not have the -r option. I think that -r is not needed at all because the used path in the script are not relative. So it should be good to simply remove the -r option. I've tested it on my mac and it seems to work fine.
I've also changed the source path from /home/${USER}/.. to ${HOME}/.... OSX has the home path /Users instead of /home
The
ln
version of osx does not have the-r
option. I think that-r
is not needed at all because the used path in the script are not relative. So it should be good to simply remove the-r
option. I've tested it on my mac and it seems to work fine.I've also changed the source path from
/home/${USER}/..
to${HOME}/...
. OSX has the home path/Users
instead of/home