OSX How do I have a Shell script change directory to the one the script is in?
Just wanted to weigh in here. I've seen some people with this problem. If you are JUST on OSX and making your own scripts. This will do the trick :) kind of a hack, but works like a charm.
#! /bin/bash sudo /Applications/XAMPP/xamppfiles/xampp startapacheopen /Applications/XAMPP/htdocs