#!/bin/bash LATEST_VERSION=$(curl -s https://registry.hub.docker.com/v2/namespaces/bvbnatsu/repositories/tsukuba2022/tags | jq '.results | map(select(.name | endswith("jr")).name)[0]') docker pull bvbnatsu/tsukuba2022:$(echo $LATEST_VERSION | sed 's/"//g')