Cleanup dev-env script (#4932)

This commit is contained in:
Manuel Alejandro de Brito Fontes 2020-01-25 20:17:26 -03:00 committed by GitHub
parent 1443ebf5a8
commit a4f3467f9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View file

@ -25,6 +25,10 @@ set -o pipefail
# temporal directory for the /etc/ingress-controller directory
INGRESS_VOLUME=$(mktemp -d)
if [[ "$OSTYPE" == darwin* ]]; then
INGRESS_VOLUME=/private$INGRESS_VOLUME
fi
function cleanup {
rm -rf "${INGRESS_VOLUME}"
}