zebrunner / mcloud-agent

20 stars 12 forks source link

Check grep conditions #339

Open azarouski opened 2 months ago

azarouski commented 2 months ago

https://github.com/zebrunner/mcloud-agent/blob/master/roles/devices/templates/zebrunner-farm#L459

docker ps -a | grep -v appium | grep $container > /dev/null
if [ $? -eq 0 ]; then
  stfState=`docker inspect --format='{{ '{{' }}json .State.Health.Status{{ '}}' }}' $container`
fi

why we use -v appium