github.com/GoogleContainerTools/skaffold/v2@v2.13.2/integration/testdata/status-check-tolerance/tolerance-check/script.sh (about) 1 #!/bin/sh 2 3 current_time=$(date +%s) 4 stop_failing_time=$STOP_FAILING_TIME 5 6 echo $current_time 7 echo "========" 8 echo $stop_failing_time 9 echo "========" 10 11 if [[ $current_time -le $stop_failing_time ]]; then 12 echo "current time less than stop failing time, container will exit with error" 13 exit 1 14 fi 15 while : 16 do 17 echo "Hello world!!!! - current time greater than stop failing time!" 18 sleep 2 19 done