From 85bef92e57af95f1e8fc374193a5e311e6061878 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 3 Mar 2025 06:54:10 -0300 Subject: bin/upload: Deal gracefully when there is nothing to do --- bin/upload | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin') 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"/ -- cgit v1.2.3