From 540647f1c546c42aaef7e5f909fd465db3812029 Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Fri, 18 Aug 2023 12:20:19 -0400 Subject: [PATCH] comment --- usr/bin/dist-installer-cli | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr/bin/dist-installer-cli b/usr/bin/dist-installer-cli index 53cf311a..ac894588 100755 --- a/usr/bin/dist-installer-cli +++ b/usr/bin/dist-installer-cli @@ -911,6 +911,8 @@ update_sources(){ #root_cmd ${pkg_mngr_update} 2>&1 || true #update_sources_error ## result: OK: command_without_extrarenous_spaces="sudo -- apt-get update --yes --error-on=any" + ## But if root_cmd is run in a subshell using $(root_cmd ...) then command_without_extrarenous_spaces + ## won't be updated. # shellcheck disable=SC2086 if update_output=$(root_cmd ${pkg_mngr_update} 2>&1 | $console_write_command) ; then