Created
July 4, 2016 01:32
-
-
Save haruo31/d9bb6bac7b7928bb1d209193d5626e71 to your computer and use it in GitHub Desktop.
posix compliant determining script home directory.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
BASE=`dirname $0 | xargs -I\{\} sh -c "cd {}; pwd"` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment