aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-03-03 06:54:10 -0300
committerEuAndreh <eu@euandre.org>2025-03-03 06:54:10 -0300
commit85bef92e57af95f1e8fc374193a5e311e6061878 (patch)
tree6667941e6b4df832201d794567786432150b6fac /bin
parentbin/process: Use "info" loglevel for ffmpeg(1) (diff)
downloaddotfiles-85bef92e57af95f1e8fc374193a5e311e6061878.tar.gz
dotfiles-85bef92e57af95f1e8fc374193a5e311e6061878.tar.xz
bin/upload: Deal gracefully when there is nothing to do
Diffstat (limited to 'bin')
-rwxr-xr-xbin/upload4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/upload b/bin/upload
index 6a0702b..9ab97fa 100755
--- a/bin/upload
+++ b/bin/upload
@@ -3,6 +3,10 @@ set -eu
cd "${LIVEDIR:-$HOME/Public/live/}"
for f in queue/*.webm; do
+ if [ "$f" = 'queue/*.webm' ]; then
+ break
+ fi
+
rsync -avP -- "$f" toph:lives/
: day="$(basename -- "$f" .webm)"
: rm -rf "$day"/