From 7d33a8c39844b9c1cf26f131bf7c9fa6984cc635 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 2 Mar 2025 17:11:57 -0300 Subject: bin/upload: Add version that does not delete files --- bin/upload | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 bin/upload diff --git a/bin/upload b/bin/upload new file mode 100755 index 0000000..730be5f --- /dev/null +++ b/bin/upload @@ -0,0 +1,10 @@ +#!/bin/sh +set -eu + +cd "${LIVEDIR:-~/Public/live/}" +for f in queue/*.webm; do + rsync -avP -- "$f" toph:lives/ + : day="$(basename -- "$f" .webm)" + : rm -rf "$day"/ + : rm -v "$f" +done -- cgit v1.2.3