Fix line breaks in utility script for bootstrap update

This commit is contained in:
Dmitriy Novozhilov
2023-03-18 00:45:32 +02:00
parent 7a25e885b1
commit d3200b2c65
+2 -2
View File
@@ -17,7 +17,7 @@ if __name__ == '__main__':
version = sys.argv[1]
properties = 'gradle.properties'
kotlinc = '.idea/kotlinc.xml'
update_content(properties, 'bootstrap.kotlin.default.version', f'bootstrap.kotlin.default.version={version}')
update_content(kotlinc, ' <option name="version" value=', f' <option name="version" value="{version}" />')
update_content(properties, 'bootstrap.kotlin.default.version', f'bootstrap.kotlin.default.version={version}\n')
update_content(kotlinc, ' <option name="version" value=', f' <option name="version" value="{version}" />\n')
subprocess.run(['git', 'add', properties, kotlinc], check=True)
subprocess.run(['git', 'commit', '-m', f'Advance bootstrap to {version}'])