From aa8f7be91c2b1405c5950b76622e0097ade1ac67 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Sun, 30 Apr 2017 09:07:49 +0000 Subject: fix tlmgr shell error git-svn-id: svn://tug.org/texlive/trunk@44125 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/scripts/texlive/tlmgr.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Master/texmf-dist/scripts/texlive/tlmgr.pl b/Master/texmf-dist/scripts/texlive/tlmgr.pl index ac974fec502..cc77e4441cd 100755 --- a/Master/texmf-dist/scripts/texlive/tlmgr.pl +++ b/Master/texmf-dist/scripts/texlive/tlmgr.pl @@ -6632,7 +6632,7 @@ sub action_shell { chomp($ans); if (@options) { $ans--; - if ($ans >= 0 && $ans < $#options) { + if ($ans >= 0 && $ans <= $#options) { $ans = $options[$ans]; return($ans); } else { @@ -6697,7 +6697,7 @@ sub action_shell { } # deal with Ctrl-D if (!defined($val)) { - print('ERROR Missing value for set.\n'); + print("ERROR Missing value for set.\n"); next; } } -- cgit v1.2.3