based https://github.com/dart-lang/chromedeveditor/blame/master/ide/tool/drone_io.sh adbad69