Skip to content

Commit

Permalink
Build: Always use local tmp dir on macOS. (#12734)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gacko authored Jan 21, 2025
1 parent eb62c2a commit 59a0da7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions build/run-in-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,11 @@ set -o nounset
set -o pipefail

# temporal directory for the /etc/ingress-controller directory
if [[ "$OSTYPE" == darwin* ]] && [[ "$RUNTIME" == podman ]]; then
if [[ "$OSTYPE" == darwin* ]]; then
mkdir -p "tmp"
INGRESS_VOLUME=$(pwd)/$(mktemp -d tmp/XXXXXX)
else
INGRESS_VOLUME=$(mktemp -d)
if [[ "$OSTYPE" == darwin* ]]; then
INGRESS_VOLUME=/private$INGRESS_VOLUME
fi
fi

# make sure directory for SSL cert storage exists under ingress volume
Expand Down

0 comments on commit 59a0da7

Please sign in to comment.