use a big Y to indicate that hitting enter will result in Y. Also list q as an option to quit

This commit is contained in:
Isaac Connor 2018-01-26 16:05:43 -05:00
parent 2f39e44f91
commit e824f0abfe
1 changed files with 2 additions and 1 deletions

View File

@ -375,6 +375,7 @@ MAIN: while( $loop ) {
} # end foreach fs event } # end foreach fs event
} else { } else {
aud_print( "Filesystem monitor '$monitor_id' in $$Storage{Path} does not exist in database" ); aud_print( "Filesystem monitor '$monitor_id' in $$Storage{Path} does not exist in database" );
if ( confirm() ) { if ( confirm() ) {
my $command = "rm -rf $monitor_id"; my $command = "rm -rf $monitor_id";
executeShellCommand( $command ); executeShellCommand( $command );
@ -717,7 +718,7 @@ sub confirm {
if ( $report ) { if ( $report ) {
print( "\n" ); print( "\n" );
} elsif ( $interactive ) { } elsif ( $interactive ) {
print( ", $prompt y/n: " ); print( ", $prompt Y/n/q: " );
my $char = <>; my $char = <>;
chomp( $char ); chomp( $char );
if ( $char eq 'q' ) { if ( $char eq 'q' ) {