gentoo-ami-builder icon indicating copy to clipboard operation
gentoo-ami-builder copied to clipboard

macOS mktemp doesn't accept --suffix

Open awwright opened this issue 8 months ago • 0 comments

Trying to run the program on macOS 15.5, I get the error:

mktemp: unrecognized option `--suffix=.json'
usage: mktemp [-d] [-p tmpdir] [-q] [-t prefix] [-u] template ...
       mktemp [-d] [-p tmpdir] [-q] [-u] -t prefix 
/Users/awright/gentoo-ami-builder/lib/app-lib.sh: line 226: : No such file or directory

It appears macOS "mktemp" doesn't support the --suffix option. Simply removing it seems to fix the problem, as the .json suffix is nice, but not strictly necessary for the aws cli's needs.

awwright avatar Jul 25 '25 21:07 awwright