Skip to content

Commit

Permalink
use jq instead of awk in dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
aptalca committed Jan 13, 2019
1 parent 9ad72eb commit 5640b3f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Expand Up @@ -18,7 +18,7 @@ RUN \
echo "**** install duplicati ****" && \
if [ -z ${DUPLICATI_RELEASE+x} ]; then \
DUPLICATI_RELEASE=$(curl -sX GET "https://api.github.com/repos/duplicati/duplicati/releases" \
| awk '/tag_name.*(beta|release)/{print $4;exit}' FS='[""]'); \
| jq -r 'first(.[] | select(.tag_name | contains("beta"))) | .tag_name'); \
fi && \
mkdir -p \
/app/duplicati && \
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.aarch64
Expand Up @@ -21,7 +21,7 @@ RUN \
echo "**** install duplicati ****" && \
if [ -z ${DUPLICATI_RELEASE+x} ]; then \
DUPLICATI_RELEASE=$(curl -sX GET "https://api.github.com/repos/duplicati/duplicati/releases" \
| awk '/tag_name.*(beta|release)/{print $4;exit}' FS='[""]'); \
| jq -r 'first(.[] | select(.tag_name | contains("beta"))) | .tag_name'); \
fi && \
mkdir -p \
/app/duplicati && \
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.armhf
Expand Up @@ -21,7 +21,7 @@ RUN \
echo "**** install duplicati ****" && \
if [ -z ${DUPLICATI_RELEASE+x} ]; then \
DUPLICATI_RELEASE=$(curl -sX GET "https://api.github.com/repos/duplicati/duplicati/releases" \
| awk '/tag_name.*(beta|release)/{print $4;exit}' FS='[""]'); \
| jq -r 'first(.[] | select(.tag_name | contains("beta"))) | .tag_name'); \
fi && \
mkdir -p \
/app/duplicati && \
Expand Down

0 comments on commit 5640b3f

Please sign in to comment.