From f1ad83a8b6a90687d44b142d368537753a1f772e Mon Sep 17 00:00:00 2001 From: James Barnett Date: Fri, 11 Nov 2016 14:36:56 -0600 Subject: [PATCH] Choose "yes" if only enter is pressed Fixes #8. --- bin/snap-sync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/snap-sync b/bin/snap-sync index 790be55..8e9e8af 100755 --- a/bin/snap-sync +++ b/bin/snap-sync @@ -167,7 +167,7 @@ for x in $selected_configs; do read -r -p "Continue with backup [Y/n]? " cont_backup fi - if [[ "$cont_backup" != [Yy]"es" && "$cont_backup" != [Yy] ]]; then + if [[ "$cont_backup" != [Yy]"es" && "$cont_backup" != [Yy] && -n "$cont_backup" ]]; then printf "Aborting backup for this configuration.\n" snapper -c $x delete $new_number continue