From f22d8687b28db868547352b97559429219ddb09a Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Wed, 18 Aug 2021 21:34:43 +0300 Subject: [PATCH] Dry-run for update-wb. Download the new image but don't create a new container (safe to run in the background). --- Documents/bin/update-wb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documents/bin/update-wb b/Documents/bin/update-wb index bd3b0c5..9f64b0f 100755 --- a/Documents/bin/update-wb +++ b/Documents/bin/update-wb @@ -23,6 +23,9 @@ update() { if [ "$(hostname)" = 'toolbox' ] then /usr/libexec/flatpak-xdg-utils/flatpak-spawn --host "$0" "$@" +elif [ "$1" = "-d" ] || [ "$1" = "--dry-run" ] || [ -n "${DRY_RUN:-}" ] +then + podman image pull "$IMAGE" > /dev/null elif ! (is_latest) then update -- GitLab