aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-03-02 18:31:55 -0300
committerEuAndreh <eu@euandre.org>2025-03-03 06:09:09 -0300
commit83d53747e919a24b48c7e72ff54aa6930ac46ea2 (patch)
treee47d81352313e9e122b83a966044dd8a17d04480 /bin
parentbin/process: Add working version (diff)
downloaddotfiles-83d53747e919a24b48c7e72ff54aa6930ac46ea2.tar.gz
dotfiles-83d53747e919a24b48c7e72ff54aa6930ac46ea2.tar.xz
bin/: Fix fallback for $LIVEDIR
Diffstat (limited to 'bin')
-rwxr-xr-xbin/live2
-rwxr-xr-xbin/process2
-rwxr-xr-xbin/upload2
3 files changed, 3 insertions, 3 deletions
diff --git a/bin/live b/bin/live
index 7b3caa8..d5de100 100755
--- a/bin/live
+++ b/bin/live
@@ -1,7 +1,7 @@
#!/bin/sh
set -eu
-cd "${LIVEDIR:~/Public/live}"
+cd "${LIVEDIR:-$HOME/Public/live}"
DIR="data/$(timestamp)"/"$(now)"
mkdir -p "$DIR"
cd "$DIR"
diff --git a/bin/process b/bin/process
index 7f2bea6..4215341 100755
--- a/bin/process
+++ b/bin/process
@@ -1,7 +1,7 @@
#!/bin/sh
set -eu
-cd "${LIVEDIR:-~/Public/live/}"
+cd "${LIVEDIR:-$HOME/Public/live/}"
makefile_pre() {
cat <<'EOF'
diff --git a/bin/upload b/bin/upload
index 730be5f..6a0702b 100755
--- a/bin/upload
+++ b/bin/upload
@@ -1,7 +1,7 @@
#!/bin/sh
set -eu
-cd "${LIVEDIR:-~/Public/live/}"
+cd "${LIVEDIR:-$HOME/Public/live/}"
for f in queue/*.webm; do
rsync -avP -- "$f" toph:lives/
: day="$(basename -- "$f" .webm)"