summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-01-06 21:26:15 +0100
committerJohn Ankarström <john@ankarstrom.se>2021-01-06 21:27:17 +0100
commita165daec269307e3d26ae4e630aab111e4fd6062 (patch)
treee55908f9f2130ca2fc05fbcddc447d777b2b58fd /bin
parent914a3d9eb768bce9a978d6e9a7f833288c3dea0e (diff)
downloadef-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')
-rwxr-xr-xbin/hlp/mkefp7
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