Skip to content

Commit

Permalink
Merge pull request moby#4348 from tianon/fix-yum-tagging
Browse files Browse the repository at this point in the history
Update mkimage-yum to not read /etc/redhat-release from the host
  • Loading branch information
tianon committed Feb 26, 2014
2 parents d373cb8 + d29ee87 commit b5ba895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/mkimage-yum.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ rm -rf "$target"/var/cache/ldconfig/*

version=
if [ -r "$target"/etc/redhat-release ]; then
version="$(sed 's/^[^0-9\]*\([0-9.]\+\).*$/\1/' /etc/redhat-release)"
version="$(sed 's/^[^0-9\]*\([0-9.]\+\).*$/\1/' "$target"/etc/redhat-release)"
fi

if [ -z "$version" ]; then
Expand Down

0 comments on commit b5ba895

Please sign in to comment.