Fix minor "git log" usage issue

This commit is contained in:
Tianon Gravi 2014-11-25 22:04:38 -07:00
parent 5f2bb88d24
commit be49cab808
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ url='git://github.com/docker-library/python'
echo '# maintainer: InfoSiftr <github@infosiftr.com> (@infosiftr)'
for version in "${versions[@]}"; do
commit="$(git log -1 --format='format:%H' "$version")"
commit="$(git log -1 --format='format:%H' -- "$version")"
fullVersion="$(grep -m1 'ENV PYTHON_VERSION ' "$version/Dockerfile" | cut -d' ' -f3)"
versionAliases=( $fullVersion $version ${aliases[$version]} )
@ -26,7 +26,7 @@ for version in "${versions[@]}"; do
done
for variant in onbuild; do
commit="$(git log -1 --format='format:%H' "$version/$variant")"
commit="$(git log -1 --format='format:%H' -- "$version/$variant")"
echo
for va in "${versionAliases[@]}"; do
if [ "$va" = 'latest' ]; then