Agree with you. Moreover, should it be split into 2 scripts. one is like 'trybot_setup.sh' which just needs to run once manually with root permission, and the other one is 'trybot_run.sh" which does the real build automatically triggered by PR updates.