Jump to content
Double Fine Action Forums
Sign in to follow this  
dotfloat

[linux] run.sh should make symbolic links instead of hard links

Recommended Posts

I'm sure you guys know what the difference between hard links and symbolic links are.

The command ln makes hard links by default, while ln -s makes symbolic links. (Same thing for OSX.)

This is just nitpicking, as it shouldn't make any difference. But symbolic links are preferable to hard links in most scenarios.

Share this post


Link to post
Share on other sites

Also, checking whether a directory exists with bash is:


if [ ! -d ./lib ]; then

   mkdir lib

fi

rather than the current


if [ ! -f ./lib ]; then

   mkdir lib

fi

But you could also do simply


mkdir -p lib

which would not return anything when the directory already exists.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×
×
  • Create New...