made d2.sh run in bash