From c3f555efd75a8001a6c90cd93ba0ce7079f48676 Mon Sep 17 00:00:00 2001 From: Martin Vajnar Date: Sun, 17 Jan 2021 23:58:53 +0100 Subject: [PATCH] Prioritize 'exiton' over 'expect_raw' --- novaboot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/novaboot b/novaboot index 4830f51..b827f16 100755 --- a/novaboot +++ b/novaboot @@ -1299,7 +1299,7 @@ if ($interaction && defined $exp) { print STDERR "novaboot: Serial line interaction (press $interrupt to interrupt)...\n"; $exp->log_stdout(1); if (@exiton) { - $exp->expect($exiton_timeout, @expect_raw, @exiton) || die("exiton: " . ($! || "timeout")); + $exp->expect($exiton_timeout, @exiton, @expect_raw) || die("exiton: " . ($! || "timeout")); } else { my @inputs = ($exp); my $infile = new IO::File; -- 2.39.2