skip local scope coding, not needed

Signed-off-by: Adam Hill <adam@diginc.us>
This commit is contained in:
Adam Hill 2020-02-25 21:56:31 -06:00
parent 3fb82b0fde
commit 91ab080476
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ if [[ -n "$DOCKER_TAG" ]]; then
ARCH_IMAGE="${ARCH_IMAGE/%-/}"
fi
local latest_tag
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