update evince

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2017-09-18 14:44:32 -04:00
parent a47e504866
commit 0cd3e341a2
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3
2 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ FROM alpine:latest
LABEL maintainer "Christian Koep <christiankoep@gmail.com>"
RUN apk --no-cache add \
--repository https://dl-3.alpinelinux.org/alpine/edge/testing \
--repository https://dl-3.alpinelinux.org/alpine/edge/community \
evince \
ttf-opensans

View File

@ -17,13 +17,13 @@ get_latest() {
local repo=$1
local resp=$(curl -sSL -H "${AUTH_HEADER}" -H "${API_HEADER}" "${URI}/repos/${repo}/releases/latest")
local tag=$(echo $resp | jq --raw-output .tag_name)
local name=$(echo $resp | jq --raw-output .name)
local tag=$(echo $resp | jq -e --raw-output .tag_name)
local name=$(echo $resp | jq -e --raw-output .name)
if [[ "$tag" == "null" ]]; then
# get the latest tag
local resp=$(curl -sSL -H "${AUTH_HEADER}" -H "${API_HEADER}" "${URI}/repos/${repo}/tags")
local tag=$(echo $resp | jq --raw-output .[0].name)
local tag=$(echo $resp | jq -e --raw-output .[0].name)
fi
if [[ "$name" == "null" ]] || [[ "$name" == "" ]]; then