Fix update/verify-codecgen.sh for OSX.

This commit is contained in:
Eric Tune
2015-12-17 09:36:20 -08:00
parent bf67eab89f
commit 32f5f4f239
3 changed files with 15 additions and 4 deletions

View File

@@ -54,7 +54,7 @@ result=""
function depends {
file=${generated_files[$1]//\.generated\.go/.go}
deps=$(go list -f "{{.Deps}}" ${file} | tr "[" " " | tr "]" " ")
fullpath=$(readlink -f ${generated_files[$2]//\.generated\.go/.go})
fullpath=$(readlinkdashf "${generated_files[$2]//\.generated\.go/.go}")
candidate=$(dirname "${fullpath}")
result=false
for dep in ${deps}; do