diff options
author | John Ankarström <john@ankarstrom.se> | 2021-01-06 21:26:15 +0100 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-01-06 21:27:17 +0100 |
commit | a165daec269307e3d26ae4e630aab111e4fd6062 (patch) | |
tree | e55908f9f2130ca2fc05fbcddc447d777b2b58fd /bin/hlp/mkefp | |
parent | 914a3d9eb768bce9a978d6e9a7f833288c3dea0e (diff) | |
download | ef-a165daec269307e3d26ae4e630aab111e4fd6062.tar.gz |
Add `mkefp' (make ef path) helper
The ef path is a directory containing an ef session's state.
It is exposed as the environment variable EFP.
For simplicity's sake, it is not allowed to contain spaces.
Diffstat (limited to 'bin/hlp/mkefp')
-rwxr-xr-x | bin/hlp/mkefp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/hlp/mkefp b/bin/hlp/mkefp new file mode 100755 index 0000000..f9eabbd --- /dev/null +++ b/bin/hlp/mkefp @@ -0,0 +1,7 @@ +#!/bin/sh + +# mkefp -- make ef path + +: ${EFPROOT:=/var/ef} +mkdir -p $EFPROOT +mktemp -tdp $EFPROOT efp.XXXXXX |