Skip to content

Commit

Permalink
add ifconfig path
Browse files Browse the repository at this point in the history
  • Loading branch information
pcaskey committed Oct 5, 2018
1 parent 5eed6e8 commit 7a2de8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/clairscan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fi
sleep 30

#get ip where clair-scanner will listen
clairip=$(ifconfig docker0 | grep 'inet ' | sed 's/^[[:space:]]*//g' | cut -f 2 -d ' ' | sed 's/^[[:space:]]*//g')
clairip=$(/sbin/ifconfig docker0 | grep 'inet ' | sed 's/^[[:space:]]*//g' | cut -f 2 -d ' ' | sed 's/^[[:space:]]*//g')

./clair-scanner --ip ${clairip} $1
retcode=$?
Expand Down

0 comments on commit 7a2de8c

Please sign in to comment.