config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit 840d22ea982f7eb510e24a90b537b8e6c23cf4e4
parent 29b2bcd4e2b3f70149783ddca0e36f8a6ec7a3c9
Author: Jacob R. Edwards <n/a>
Date:   Sat, 10 Dec 2022 12:21:07 -0600

Put the name script's file in a temporary directory

I like to keep temporary files there unless there's a specific
reason not to (such as wanting to rename(2) it later in a different
filesystem).

Diffstat:
Mlocal/bin/bin/name | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/local/bin/bin/name b/local/bin/bin/name @@ -18,7 +18,7 @@ usage: $(basename "$0") [-n name] command [args ...]" 1>&2 exit 1 esac -dir="$(mktemp -d pipe-XXXXXX)" +dir="$(mktemp -dt pipe-XXXXXX)" trap 'rm -r "$dir"' SIGINT SIGTERM 0 path="$dir/$name"