armorbreak001 opened a new pull request, #418:
URL: https://github.com/apache/maven-wrapper/pull/418

   ## Summary
   
   **Fixes #311**
   
   `only-mvnw` declares `#!/bin/sh` shebang but uses `mktemp -d`, which is not 
POSIX-compliant and not available in all shells (e.g., ksh, some bash versions 
on AIX).
   
   ## Changes
   
   Replace `mktemp -d` with a portable alternative using `TMPDIR`, PID ($$), 
and epoch timestamp to construct a unique temp directory path, then create it 
with `mkdir -p`.
   
   This approach:
   - Uses only POSIX shell builtins/commands available everywhere
   - Maintains the same cleanup behavior via the existing `trap clean EXIT`
   - Respects `TMPDIR` like the original code did
   
   ## Testing
   
   - Verified the script still parses correctly
   - The temp dir creation follows the same pattern used in the regular `mvnw` 
wrapper script


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to