Skip to content

Commit

Permalink
Patched issue with exit prompt being added to settings.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
DuckBoss committed May 26, 2020
1 parent 0d44dcf commit aa73bef
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions FileSync/setup_utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ def ignore_dirs_setup():
ignore_dirs_input = input('Enter a directory to ignore, or "exit" to stop entering directories:\n')
if len(ignore_dirs_input) == 0:
continue
ignore_dirs_list.append(ignore_dirs_input)
print(f'Added ignore directory: {ignore_dirs_input}')
if ignore_dirs_input != 'exit':
ignore_dirs_list.append(ignore_dirs_input)
print(f'Added ignore directory: {ignore_dirs_input}')
else:
print('No ignore directories have been added.')
return ignore_dirs_list
Expand All @@ -31,8 +32,9 @@ def ignore_files_setup():
ignore_dirs_input = input('Enter a file to ignore, or "exit" to stop entering files:\n')
if len(ignore_dirs_input) == 0:
continue
ignore_files_list.append(ignore_dirs_input)
print(f'Added ignore file: {ignore_dirs_input}')
if ignore_dirs_input != 'exit':
ignore_files_list.append(ignore_dirs_input)
print(f'Added ignore file: {ignore_dirs_input}')
else:
print('No ignore files have been added.')
return ignore_files_list
Expand Down

0 comments on commit aa73bef

Please sign in to comment.