Switch update-reset-repo to bash

Writing plain sh scripts is unnecessary hard.

Change-Id: I98acb7e707eff93ae450e226b5ae67e9cf43dcd6