]> rtime.felk.cvut.cz Git - novaboot.git/blobdiff - novaboot
Get rid of trailing newlines in --uboot-init commands
[novaboot.git] / novaboot
index c5c85b7a4899f9faa050cef4130b87351048c790..4119409c72004f71d523eac3c494fabbe25f4306 100755 (executable)
--- a/novaboot
+++ b/novaboot
@@ -986,6 +986,7 @@ if (defined $uboot) {
                 [qr/Hit any key to stop autoboot:/, sub { $exp->send("\n"); exp_continue; }],
                 $uboot_prompt) || die "No uBoot prompt deteceted";
     foreach my $cmd (@uboot_init) {
+       chomp($cmd);
        $exp->send("$cmd\n");
        $exp->expect(10, $uboot_prompt) || die "uBoot prompt timeout";
     }