modified unit2-bash.sh