only run update if on master branch
This commit is contained in:
parent
a763291808
commit
bc620e8e5f
1 changed files with 4 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue