modified unit2-bash