Improve the root-transition script. (#517)
Improve the root-transition script. (#517)

* Improve the root-transition script.

* Fix bash formats.

* Small fix.

* Small fix.

* Small fixes.

istio/tools,istio/tools,istio/tools,istio/tools,istio/tools,istio/tools