Commit c487eb35 authored by Dr. Stefan Schimanski's avatar Dr. Stefan Schimanski

hack/verify-symbols: fix nm call through go tool

parent 1fba8888
...@@ -34,11 +34,11 @@ BADSYMBOLS=( ...@@ -34,11 +34,11 @@ BADSYMBOLS=(
) )
# b/c hyperkube binds everything simply check that for bad symbols # b/c hyperkube binds everything simply check that for bad symbols
SYMBOLS="$(nm "${KUBE_OUTPUT_HOSTBIN}/hyperkube")" SYMBOLS="$(go tool nm "${KUBE_OUTPUT_HOSTBIN}/hyperkube")"
RESULT=0 RESULT=0
for BADSYMBOL in "${BADSYMBOLS[@]}"; do for BADSYMBOL in "${BADSYMBOLS[@]}"; do
if FOUND=$(echo "$SYMBOLS" | grep "$BADSYMBOL"); then if FOUND=$(echo "${SYMBOLS}" | grep "${BADSYMBOL}"); then
echo "Found bad symbol '${BADSYMBOL}':" echo "Found bad symbol '${BADSYMBOL}':"
echo "$FOUND" echo "$FOUND"
RESULT=1 RESULT=1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment