Skip to content

Conversation

@PlantDaddy
Copy link

@PlantDaddy PlantDaddy commented Apr 11, 2025

Currently without these fixes, running create.sh on a mac wont work correctly. This is because the '-i' flag for sed on MacOS requires an extension appended to '-i' to create backup files when editing in place with sed. This is a specific quirk on Macs.

https://stackoverflow.com/questions/7573368/in-place-edits-with-sed-on-os-x

I added a function 'cleanup_mac()' to the script as well as an OS check to detect if it's a Mac based computer. When 'finish()' is run, it checks if the computer executing it was determined to be a Mac. If it was, it then runs 'cleanup_mac()' which runs a 'find' command piped to 'xargs' to delete the backup files.

@PlantDaddy
Copy link
Author

Relates to issue #81

@hak5peaks hak5peaks added the Pending Further Review for longer payloads that require additional review time label Apr 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Pending Further Review for longer payloads that require additional review time

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants