Exec binding group switch

Hey guys,

i have a question regarding group switching of items. The problem is, that if I switch my items separately everything works fine but if I want to switch them with a group switch all switches switch on the gui work but nothing happens. The problem, I guess, is that the gui is to fast and there is no time to execute the bash scripts.

Is there a possibility to say openhab to wait for the bash script to end?

Thank you guys.