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 <ecody@vmware.com>
This commit is contained in:
parent
14f81d4270
commit
5741efb28e
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user