diff --git a/lib/ensure_packages_installed.py b/lib/ensure_packages_installed.py index 9abb651..16ea2c1 100644 --- a/lib/ensure_packages_installed.py +++ b/lib/ensure_packages_installed.py @@ -36,9 +36,7 @@ async def ensure_packages_installed( return True update_cmd = ( - "apt-get update" - "-y" - "--no-install-recommends" + "apt-get update -y --no-install-recommends" ) return_code, stdout, stderr = await utils.async_run_command( update_cmd, @@ -55,12 +53,9 @@ async def ensure_packages_installed( return False install_cmd = ( - "apt-get install" - "-y" - "--no-install-recommends" - "--assume-yes" - "-o Dpkg::Options::='--force-confdef'" # Default to existing config - "-o Dpkg::Options::='--force-confold'" # Keep existing config + "apt-get install -y --no-install-recommends --assume-yes "+ + "-o Dpkg::Options::='--force-confdef' "+ # Default to existing config + "-o Dpkg::Options::='--force-confold' "+ # Keep existing config f"{' '.join(packages_to_install)}" )