[Why] The purpose of adding the last four lines is to remove useless warn logs, but it exits at the end.
This will cause the process which source this script exit.
[Addition] Related commit id: 16cef539c517d0e6bd3495a1e3079214a8b4bd24
Signed-off-by: Yu Chuan 13186087857@163.com --- distro/installer/debian | 4 ---- 1 file changed, 4 deletions(-)
diff --git a/distro/installer/debian b/distro/installer/debian index 3148ee3b2c2a..35b3209bd747 100755 --- a/distro/installer/debian +++ b/distro/installer/debian @@ -6,7 +6,3 @@ dpkg --add-architecture i386 && apt-get update apt-get -o Dpkg::Options::="--force-confdef" \ -o Dpkg::Options::="--force-confold" \ -y install $* >/tmp/apt-get_info 2>&1 - -ret_value=$? -grep -v "dpkg: warning: files list file for package '.*' missing;" /tmp/apt-get_info -exit $ret_value