summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xlibexec/container/update19
1 files changed, 15 insertions, 4 deletions
diff --git a/libexec/container/update b/libexec/container/update
index 729baff..42f42c8 100755
--- a/libexec/container/update
+++ b/libexec/container/update
@@ -119,13 +119,24 @@ do
echo "Updating ${NAME}"
echo "################################################################################"
- case "${FULL_UPGRADE}" in
- true)
- container run -n ${NAME} -- "apt update && apt ${YES} full-upgrade"
+ container run -n ${NAME} -- "apt update"
+
+ UPDATES="$(container run -n ${NAME} -- "apt \-\-simulate full-upgrade" | awk '/^[0-9]* upgraded, / { print $1 }')"
+
+ case "${UPDATES}" in
+ 0)
;;
*)
- container run -n ${NAME} -- "apt update && apt ${YES} upgrade"
+ case "${FULL_UPGRADE}" in
+ true)
+ container run -n ${NAME} -- "apt ${YES} full-upgrade"
+ ;;
+
+ *)
+ container run -n ${NAME} -- "apt ${YES} upgrade"
+ ;;
+ esac
;;
esac