• Announcements

    • Spaff

      These Forums are closing!   10/04/2019

      After more than a decade of serving this community well, these forums have finally run their course and it's time to close them down. That doesn't mean we want to close the doors on our community, quite the opposite!
      Our discord server grows ever busier by the day, and we encourage all Double Fine fans to meet us over there www.discord.gg/doublefine In a short time these forums will become a read only archive and will remain that way until they become needed again.
      You never know, it might happen.  There is... a prophecy. Thank you all for being part of these forums, and remember that the fun is definitely not over - so please join us on Discord! Love ya, Spaff, Tim, Info Cow, and all of Double Fine.
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