https://github.com/lazypwny751/tempd
Create temp directory
https://github.com/lazypwny751/tempd
coreutils tempdir tempfile
Last synced: 6 months ago
JSON representation
Create temp directory
- Host: GitHub
- URL: https://github.com/lazypwny751/tempd
- Owner: lazypwny751
- License: gpl-3.0
- Created: 2023-11-27T13:28:36.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-30T23:28:57.000Z (about 2 years ago)
- Last Synced: 2025-05-30T08:53:14.275Z (9 months ago)
- Topics: coreutils, tempdir, tempfile
- Language: Shell
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tempd
a simple shell library for generate temp directory, alternative for "mktemp -d"
## Installation
```sh
git clone https://github.com/lazypwny751/tempd.git
cd tempd
bash missing.sh
sudo make all
```
## Usage
you can source the library in a shell script also you use it directly.
```sh
source /usr/local/lib/bash/5.1/tempd.sh
tempd.create export
rm -rf "${TEMPD}"
export TEMPD="$(tempd.create)"
rm -rf "${TEMPD}"
```
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
## License
[GPL3](https://choosealicense.com/licenses/gpl-3.0/)