Signed-off-by: Adam Hill <adam@diginc.us>
This commit is contained in:
Adam Hill 2020-02-25 21:43:54 -06:00
parent 730ee6952a
commit 3fb82b0fde
1 changed files with 3 additions and 2 deletions

View File

@ -33,8 +33,9 @@ if [[ -n "$DOCKER_TAG" ]]; then
ARCH_IMAGE="${ARCH_IMAGE/%-/}"
fi
if ! latesttag=$(curl -sI https://github.com/pi-hole/docker-pi-hole/releases/latest | grep --color=never -i Location | awk -F / '{print $NF}' | tr -d '[:cntrl:]'); then
print " Failed to retrieve latest docker-pi-hole release metadata" "${CROSS}"
local latest_tag
if ! latest_tag=$(curl -sI https://github.com/pi-hole/docker-pi-hole/releases/latest | grep --color=never -i Location | awk -F / '{print $NF}' | tr -d '[:cntrl:]'); then
print "Failed to retrieve latest docker-pi-hole release metadata"
else
if [[ "$DOCKER_TAG" == "$latest_tag" ]] ; then
LATEST_IMAGE="$BASE_IMAGE:latest"