X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=scripts%2Fci_management%2Fcleanup_master.sh;fp=scripts%2Fci_management%2Fcleanup_master.sh;h=0e09973ef60900112cfe20b31740d85f420c4ace;hb=8cda416e63b611c759720f5b2ef96eea6dba4205;hp=636535d35aae1463b86d3a225b7382ef4c4762e4;hpb=cfe405b4861af53b77abe7b7cd3e5caa2e76484b;p=eliot.git diff --git a/scripts/ci_management/cleanup_master.sh b/scripts/ci_management/cleanup_master.sh index 636535d..0e09973 100755 --- a/scripts/ci_management/cleanup_master.sh +++ b/scripts/ci_management/cleanup_master.sh @@ -18,9 +18,9 @@ value=$(whoami) # kubeedge reset internally undo the things done by ./kubeedge init -if [ -d "/root/go/src/github.com/kubeedge/kubeedge/keadm" ]; then - cd /root/go/src/github.com/kubeedge/kubeedge/keadm - ./kubeedge reset +if [ -d "$GOPATH/src/github.com/kubeedge/kubeedge/keadm" ]; then + cd $GOPATH/src/github.com/kubeedge/kubeedge/keadm + ./keadm reset fi # delete the previously existing certificates @@ -41,8 +41,8 @@ fi # delete the kubeedge code -if [ -d "/root/go/src" ]; then - cd /root/go +if [ -d "$GOPATH/src" ]; then + cd $GOPATH sudo rm -rf src fi