Fix 'autoclose' functionality

Logic wasn't right when defined in the config file and also when used on the command line.
This commit is contained in:
Duncan Ferguson 2011-12-15 11:23:28 +00:00
parent b41907bcc4
commit a8e68a461b
3 changed files with 6 additions and 3 deletions

View file

@ -27,7 +27,7 @@ sub script {
my $command = $config->{command};
my $autoclose = $config->{auto_close};
my $postcommand = $autoclose ? "echo Press RETURN to continue; read IGNORE" : "sleep $autoclose";
my $postcommand = $autoclose ? "sleep $autoclose" : "echo Press RETURN to continue; read IGNORE"; # : "sleep $autoclose";
# # P = pipe file
# # s = server