mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
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:
@@ -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}
|
||||
|
Reference in New Issue
Block a user