only run update if on master branch

This commit is contained in:
j 2017-02-16 14:38:29 +01:00
parent a763291808
commit bc620e8e5f

View file

@ -231,6 +231,10 @@ if __name__ == "__main__":
os.chdir(base)
current = ''
new = ''
if development:
if get('git', 'symbolic-ref', 'HEAD').split('/')[-1] != 'master':
print('update only possible if you are on master branch')
sys.exit(1)
for repo in sorted(repos, key=lambda r: repos[r]['path']):
path = os.path.join(base, repos[repo]['path'])
if exists(path):