I would be glad if somebody could explain me what this part of the code does
[ -n "${0%/*}" ] && cd ${0%/*}
. ./environment.sh
. ./readParams.sh
I understand that this script is reading from ./enviroment.sh
and ./readparams.sh
But i am really struggling to understand what the first line of the code does.So i can understand the whole process after this.
I would be glad if you could give me a site or anything that will help me understand such a syntax. I am a beginner in shell script so any help is appreciated.