Created
September 18, 2018 13:48
-
-
Save 0x1b-xyz/a5fd53ba4e73a2e1c1fb9bd056a04d82 to your computer and use it in GitHub Desktop.
I hate you bash. Seriously.
This file contains hidden or 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
# Resolves an absolute path regardless of distribution or arch. | |
absPath() { | |
python -c "import os,sys; print os.path.abspath(sys.argv[1])" ${1} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment