http://twitter.com/dhsrocha/ | |
Blog | http://dhsrocha.github.io |
Website | http://dhsrocha.com.br |
0
score
|
Source without circular reference$ [ ! "${LIB}" ] && ( readonly LIB; . "${ $( cd $( dirname $0 ) && pwd ) }/<path_to>/LIB.sh" ) |
4
score
|
Ternary conditional clause$ [ test_statement ] && ( then_statement ) || ( else_statement ); |
3
score
|
Get executed script's current working directory$ CWD=$(cd "$(dirname "$0")" && pwd) |