diff --git a/xCAT-server/lib/xcat/plugins/xdsh.pm b/xCAT-server/lib/xcat/plugins/xdsh.pm index 6a7c6fe8b..7cbe94c87 100644 --- a/xCAT-server/lib/xcat/plugins/xdsh.pm +++ b/xCAT-server/lib/xcat/plugins/xdsh.pm @@ -756,7 +756,7 @@ sub xdsh for ($j = 0 ; $j < $maxlines ; $j++) { - if ($i > $arraylen) + if ($i >= $arraylen) { last; }