Skip to content

Commit

Permalink
Fix pypi update.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
tianon committed Oct 4, 2018
1 parent 79548b6 commit fc812e1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
8 changes: 5 additions & 3 deletions beets/update.sh
@@ -1,7 +1,9 @@
#!/bin/bash
set -e
#!/usr/bin/env bash
set -Eeuo pipefail

current="$(curl -sSL 'https://pypi.python.org/pypi/beets/json' | awk -F '"' '$2 == "version" { print $4 }')"
cd "$(dirname "$BASH_SOURCE")"

current="$(curl -fsSL 'https://pypi.org/pypi/beets/json' | jq -r .info.version)"

set -x
sed -ri 's/^(ENV BEETS_VERSION) .*/\1 '"$current"'/' Dockerfile
8 changes: 5 additions & 3 deletions diffoscope/update.sh
@@ -1,7 +1,9 @@
#!/bin/bash
set -e
#!/usr/bin/env bash
set -Eeuo pipefail

current="$(curl -sSL 'https://pypi.python.org/pypi/diffoscope/json' | awk -F '"' '$2 == "version" { print $4 }')"
cd "$(dirname "$BASH_SOURCE")"

current="$(curl -fsSL 'https://pypi.org/pypi/diffoscope/json' | jq -r .info.version)"

set -x
sed -ri 's/^(ENV DIFFOSCOPE_VERSION) .*/\1 '"$current"'/' Dockerfile
8 changes: 5 additions & 3 deletions gmvault/update.sh
@@ -1,7 +1,9 @@
#!/bin/bash
set -e
#!/usr/bin/env bash
set -Eeuo pipefail

current="$(curl -sSL 'https://pypi.python.org/pypi/gmvault/json' | awk -F '"' '$2 == "version" { print $4 }')"
cd "$(dirname "$BASH_SOURCE")"

current="$(curl -fsSL 'https://pypi.org/pypi/gmvault/json' | jq -r .info.version)"

set -x
sed -ri 's/^(ENV GMVAULT_VERSION) .*/\1 '"$current"'/' Dockerfile

0 comments on commit fc812e1

Please sign in to comment.