I am relatively new to shell scripts. I am trying to create a script that can initiate grunt.js by launching the script in Finder (Mac). I want to be able to place this script anywhere and for it to just work by running the version of grunt in the folder the script is located.
How can I achieve this? I have looked for a few hours trying to find a solution but due to my lack of knowledge I am struggling.
Does anyone have a snippet that can CD to the directory the script is stored and run a command?