Update godep-licenses script to work on darwin

This change ensures that the BSD (darwin) and GNU (linux) versions of the md5sum util have the same output.
This commit is contained in:
Christoph Blecker 2017-09-01 12:26:58 -07:00
parent 44c5182187
commit fa7db1387b
No known key found for this signature in database
GPG Key ID: B34A59A9D39F838B

View File

@ -141,7 +141,7 @@ echo "= Kubernetes licensed under: ="
echo
cat ${LICENSE_ROOT}/LICENSE
echo
echo "= LICENSE $(cat ${LICENSE_ROOT}/LICENSE | md5sum)"
echo "= LICENSE $(cat ${LICENSE_ROOT}/LICENSE | md5sum | awk '{print $1}')"
echo "================================================================================"
) > ${TMP_LICENSE_FILE}
@ -180,7 +180,7 @@ __EOF__
cat "${file}"
echo
echo "= ${file} $(cat ${file} | md5sum)"
echo "= ${file} $(cat ${file} | md5sum | awk '{print $1}')"
echo "================================================================================"
echo
done >> ${TMP_LICENSE_FILE}