From 5741efb28e445f8e2fda4d800be34e5bba42f99f Mon Sep 17 00:00:00 2001 From: "Cody W. Eilar" Date: Fri, 23 Jun 2023 15:37:03 -0600 Subject: [PATCH] Remove the "--tmpdir" flag from mktemp - The OS X version of mktemp doesn't support the --tmpdir flag. - According to the doc for mktemp on OSX: "If no arguments are passed or if only the -d flag is passed mktemp behaves as if -t tmp was supplied." - This will continue to work for Linux based versions of mktemp. Signed-off-by: Cody W. Eilar --- hack/check-crds.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hack/check-crds.sh b/hack/check-crds.sh index c4d26961e..d17994a15 100755 --- a/hack/check-crds.sh +++ b/hack/check-crds.sh @@ -40,8 +40,7 @@ if [[ -z $yq ]]; then fi echo "+++ verifying that generated CRDs are up-to-date..." >&2 - -tmpdir="$(mktemp -d tmp-CHECKCRD-XXXXXXXXX --tmpdir)" +tmpdir="$(mktemp -d tmp-CHECKCRD-XXXXXXXXX)" trap 'rm -r $tmpdir' EXIT make PATCH_CRD_OUTPUT_DIR=$tmpdir patch-crds