forked from 0x2620/pandora
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)
|
os.chdir(base)
|
||||||
current = ''
|
current = ''
|
||||||
new = ''
|
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']):
|
for repo in sorted(repos, key=lambda r: repos[r]['path']):
|
||||||
path = os.path.join(base, repos[repo]['path'])
|
path = os.path.join(base, repos[repo]['path'])
|
||||||
if exists(path):
|
if exists(path):
|
||||||
|
|
Loading…
Reference in a new issue