finish the bash part