How to print/show in variable path to the curent bash script?

# cat /root/script.sh
thisscriptdir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
echo $thisscriptdir
# sh /root/script.sh
/root