aboutsummaryrefslogtreecommitdiff
path: root/adu-download
diff options
context:
space:
mode:
authorAdam Spragg <adam@spra.gg>2022-03-16 15:35:45 +0000
committerAdam Spragg <adam@spra.gg>2022-03-16 15:35:45 +0000
commite0f03f2b2a83c2f0f32033fd11e652ee982e1a7c (patch)
tree24967054209750aa58c8cf997b49852f0eb143c9 /adu-download
parent4c4291d40daf4eb235faf89c7832f6c389607ce8 (diff)
Pass `--with-new-pkgs` to `apt-get upgrade`
To allow for kernel upgrades, which install new packages. Also, make the way we pass options to `apt-get upgrade` more consistent between calls. Notably, put all options before the command, as indicated by the apt-get(1) man page.
Diffstat (limited to 'adu-download')
-rwxr-xr-xadu-download2
1 files changed, 1 insertions, 1 deletions
diff --git a/adu-download b/adu-download
index ba021f7..987efa6 100755
--- a/adu-download
+++ b/adu-download
@@ -32,7 +32,7 @@ if [ "$upgrades" -eq 0 ]; then
exit 0
fi
-apt-get -qq upgrade -d
+apt-get -q -y --with-new-pkgs --download-only upgrade
ln -s -- "${UPDATE_TARGET}" "${UPDATE_SYMLINK}" 2>/dev/null || true
echo "$upgrades updates available"