From e824f0abfe45e7aa6c284b0f03b3bc530a7f5096 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 26 Jan 2018 16:05:43 -0500 Subject: [PATCH] use a big Y to indicate that hitting enter will result in Y. Also list q as an option to quit --- scripts/zmaudit.pl.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/zmaudit.pl.in b/scripts/zmaudit.pl.in index edf14d3cf..5812b86ad 100644 --- a/scripts/zmaudit.pl.in +++ b/scripts/zmaudit.pl.in @@ -375,6 +375,7 @@ MAIN: while( $loop ) { } # end foreach fs event } else { aud_print( "Filesystem monitor '$monitor_id' in $$Storage{Path} does not exist in database" ); + if ( confirm() ) { my $command = "rm -rf $monitor_id"; executeShellCommand( $command ); @@ -717,7 +718,7 @@ sub confirm { if ( $report ) { print( "\n" ); } elsif ( $interactive ) { - print( ", $prompt y/n: " ); + print( ", $prompt Y/n/q: " ); my $char = <>; chomp( $char ); if ( $char eq 'q' ) {