diff --git a/Documents/bin/update-wb b/Documents/bin/update-wb index 448701f105b11e4b97329746e9828428d5763952..947a03584f78964b4286836306ddcf98d57c7014 100755 --- a/Documents/bin/update-wb +++ b/Documents/bin/update-wb @@ -7,7 +7,7 @@ CONTAINER='workbench' is_latest() { podman image exists "$IMAGE" || return 1 toolbox run --container "$CONTAINER" true 2>/dev/null || return 1 - current="$(podman image inspect "$IMAGE" --format '{{.Digest}}')" + current="$(podman container inspect "$CONTAINER" --format '{{ .Image }}')" podman image pull --quiet "$IMAGE" > /dev/null new="$(podman image inspect "$IMAGE" --format '{{.Digest}}')" [ "$new" = "$current" ] || return 1 @@ -16,6 +16,7 @@ is_latest() { update() { toolbox rm --force "$CONTAINER" 2>/dev/null || true yes | podman image prune --filter 'label=com.github.containers.toolbox=true' + killall tmux || true toolbox create --image "$IMAGE" }