Mercurial > hg > config
view bin/example/script-path.sh @ 729:fc4749433229
https://gist.github.com/adyliu/4494223
| author | Jeff Hammel <k0scist@gmail.com> |
|---|---|
| date | Wed, 10 Dec 2014 10:08:31 -0800 |
| parents | 3da85ac3c54f |
| children |
line wrap: on
line source
#!/bin/bash # echoes path to this script (example) echo "argv[0]: $0" path=`readlink -f $0` echo "path: ${path}" echo "basename: $(basename $0)"
