mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
update evince
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
a47e504866
commit
0cd3e341a2
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user