SyntaxFix
Write A Post
Hire A Developer
Questions
You could do this yourself by checking the output from pwd when running it. This will print the directory you are currently in. Not the script.
pwd
If your script does not switch directories, it'll print the directory you ran it from.