X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=scripts%2Fci_management%2Fcleanup_master.sh;h=0e09973ef60900112cfe20b31740d85f420c4ace;hb=2b096e12170e73fde4cfbde8324bcf59e3d26938;hp=636535d35aae1463b86d3a225b7382ef4c4762e4;hpb=90328e7ac58a1b1e3314ea588b659de185bb1ddd;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