1
0
mirror of https://github.com/docker-library/postgres.git synced 2025-07-28 10:42:06 +03:00

Add more minor tweaks to generate-stackbrew-library.sh and update.sh

This commit is contained in:
Tianon Gravi
2014-08-01 15:48:37 -06:00
parent f627096ef6
commit 4540606ea2
3 changed files with 21 additions and 2 deletions

View File

@ -11,12 +11,12 @@ cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
versions=( */ )
versions=( "${versions[@]%/}" )
commit="$(git log -1 --format='format:%H')"
url='git://github.com/docker-library/postgres'
echo '# maintainer: InfoSiftr <github@infosiftr.com> (@infosiftr)'
for version in "${versions[@]}"; do
commit="$(git log -1 --format='format:%H' "$version")"
fullVersion="$(grep -m1 'ENV PG_VERSION ' "$version/Dockerfile" | cut -d' ' -f3 | cut -d- -f1 | sed 's/~/-/g')"
versionAliases=( ${aliases[$version]} $version $fullVersion )