Handle mktemp suffix compatibility

This commit is contained in:
thePR0M3TH3AN
2025-06-17 21:15:42 -04:00
parent 7b18df2866
commit a2de99b6be
3 changed files with 26 additions and 7 deletions

View File

@@ -27,9 +27,10 @@ With [Homebrew](https://brew.sh) you can install the same dependencies:
brew install jq qrencode imagemagick poppler node coreutils
```
These scripts rely on the GNU implementation of `mktemp` (`gmktemp`) found in
`coreutils`. If you prefer not to install `coreutils`, edit the scripts to use
`mktemp` without the `--suffix` option.
The obfuscation scripts attempt to use `mktemp --suffix` when creating
temporary files. If that option is unavailable for example on macOS without
GNU `coreutils` the scripts automatically fall back to a portable `mktemp`
command that yields the same result.
The obfuscation scripts also rely on a pair of Node modules. Install them
globally: