Cleanup dev-env script (#4932)
This commit is contained in:
parent
1443ebf5a8
commit
a4f3467f9b
3 changed files with 5 additions and 3 deletions
|
|
@ -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}"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue