Skip to content

Commit

Permalink
Merge pull request #1 from DavidSalemLee/fix/delete-input-logic
Browse files Browse the repository at this point in the history
Fix: This fixes a bug where Delete Prompt logic is inverse
  • Loading branch information
tofran authored May 8, 2024
2 parents c5722f7 + a3e3f64 commit dfe612c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storyblok_assets_cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def print_padded(outputs):
print()

if should_delete_images:
should_delete_images = input('Do you really want to delete the assets? (y/n): ') != 'y'
should_delete_images = input('Do you really want to delete the assets? (y/n): ') == 'y'
elif backup_assets:
input('Images will not be deleted but will perform backup. Press any key to continue: ')
else:
Expand Down

0 comments on commit dfe612c

Please sign in to comment.