File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1- #! /bin/sh
1+ #! /bin/bash
22
33# Copyright 2019 The Kubernetes Authors All rights reserved.
44#
1818set -uf -o pipefail
1919
2020PATH=/usr/local/bin:/sbin:/usr/local/sbin:$PATH
21+ if [ " $( uname -p) " = " arm" ]; then
22+ PATH=$PATH :/opt/homebrew/bin
23+ fi
2124
2225# cleanup shared between Linux and macOS
2326function check_jenkins() {
2427 jenkins_pid=" $( pidof java) "
25- if [[ " ${jenkins_pid} " = " " ] ]; then
28+ if [ " ${jenkins_pid} " = " " ]; then
2629 return
2730 fi
2831 pstree " ${jenkins_pid} " \
29- | egrep -i ' bash|integration|e2e|minikube' \
32+ | grep -E -i ' bash|integration|e2e|minikube' \
3033 && echo " tests are is running on pid ${jenkins_pid} ..." \
3134 && exit 1
3235}
@@ -42,7 +45,7 @@ logger "cleanup_and_reboot is happening!"
4245killall java
4346
4447# clean docker left overs
45- docker rm -f -v $( docker ps -aq) > /dev/null 2>&1 || true
48+ docker rm -f -v " $( docker ps -aq) " > /dev/null 2>&1 || true
4649docker volume prune -f || true
4750docker volume ls || true
4851docker system df || true
You can’t perform that action at this time.
0 commit comments