I have a library script named A and a script B, C which includes A with
. ../../../A
The problem is how A can know which time I run ./B.sh
or ./C.sh
, example:
if(run ./B.sh)
echo "B (file path) is calling"
else
echo "C (file path) is calling"