Closed svandragt closed 3 years ago
You can use mktemp to create a randomly named folder in tmp https://stackoverflow.com/questions/10982911/creating-temporary-files-in-bash
mktemp
tmp
And using traps to cleanup:
https://www.pixelstech.net/article/1577768087-Create-temp-file-in-Bash-using-mktemp-and-trap
You can use
mktemp
to create a randomly named folder intmp
https://stackoverflow.com/questions/10982911/creating-temporary-files-in-bashAnd using traps to cleanup:
https://www.pixelstech.net/article/1577768087-Create-temp-file-in-Bash-using-mktemp-and-trap