aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-03-03 07:59:02 -0300
committerEuAndreh <eu@euandre.org>2025-03-03 07:59:02 -0300
commit6952319a1f5c2348be2ef58efaebf863a65f5d53 (patch)
tree66d4ac994942543304d76f99f8445e714d49d32c /bin
parentbin/process: Fix data/ paths (diff)
downloaddotfiles-6952319a1f5c2348be2ef58efaebf863a65f5d53.tar.gz
dotfiles-6952319a1f5c2348be2ef58efaebf863a65f5d53.tar.xz
bin/live: Ensure directories exist
Diffstat (limited to 'bin')
-rwxr-xr-xbin/live5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/live b/bin/live
index d5de100..02210f9 100755
--- a/bin/live
+++ b/bin/live
@@ -1,7 +1,10 @@
#!/bin/sh
set -eu
-cd "${LIVEDIR:-$HOME/Public/live}"
+D="${LIVEDIR:-$HOME/Public/live}"
+mkdir -p "$D"/queue
+cd "$D"
+
DIR="data/$(timestamp)"/"$(now)"
mkdir -p "$DIR"
cd "$DIR"