From 83d53747e919a24b48c7e72ff54aa6930ac46ea2 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 2 Mar 2025 18:31:55 -0300 Subject: bin/: Fix fallback for $LIVEDIR --- bin/live | 2 +- bin/process | 2 +- bin/upload | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'bin') 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)" -- cgit v1.2.3