Skip to content

Commit

Permalink
require affirmative to mass-archive [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Jun 4, 2019
1 parent 2f34154 commit 9116859
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SetArchive.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ def main():
if not to_archive:
raise SystemExit(f'no repos left to archive under {P.user}/{P.pattern}')

print('\ntype y to archive', '\n'.join([repo.full_name for repo in to_archive]))
if input() != 'y':
print('\ntype affirmative to archive', '\n'.join([repo.full_name for repo in to_archive]))
if input() != 'affirmative':
raise SystemExit('Aborted')

for repo in to_archive:
Expand Down

0 comments on commit 9116859

Please sign in to comment.