1700_install-packages: duplicate apt-get install command on first attempt

Lines 86 to 112.
Is there a reason for this?

   ## apt: no way to view dpkg commandline and still run dpkg
   ## https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=52670
   local apt_get_exit_code="0"
   $SUDO_TO_ROOT \
      $CHROOT \
         apt-get-noninteractive \
            ${APTGETOPT[@]} \
            $apt_sourcelist_empty \
            $apt_sourceparts \
            $apt_unattended_opts \
          --yes \
          --no-install-recommends \
          install \
          "$@" \
          || { apt_get_exit_code="$?" ; true; };

   local apt_get_exit_code="0"
   $SUDO_TO_ROOT \
      $CHROOT \
         apt-get-noninteractive \
            ${APTGETOPT[@]} \
            $apt_sourcelist_empty \
            $apt_sourceparts \
            $apt_unattended_opts \
            --yes \
            --no-install-recommends \
            install \
            "$@" \
            || { apt_get_exit_code="$?" ; true; };

   $SUDO_TO_ROOT $CHROOT sync
   $SUDO_TO_ROOT sync

   if [ "$apt_get_exit_code" = "0" ]; then
      true "${cyan}INFO: Installed '$@', no error detected.${reset}"
      return 0
   fi
1 Like

Fixed.

1 Like