From c4040c1263938890e345dde7a1b59ae4a0c78fc9 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Wed, 6 May 2026 12:27:31 +0900 Subject: modified bin/hugow --- ar/.local/bin/hugow | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ar') diff --git a/ar/.local/bin/hugow b/ar/.local/bin/hugow index 91189de..efad2fb 100755 --- a/ar/.local/bin/hugow +++ b/ar/.local/bin/hugow @@ -15,6 +15,8 @@ src2="$repodir/public/recordings/" src3="$repodir/public/videos/" bgm="$repodir/static/bgm/" bgmd="/var/www/thesiah/bgm/" +prv="$repodir/static/previews/" +prvd="/var/www/thesiah/previews/" cd "$repodir" hugo --cleanDestinationDir @@ -37,9 +39,14 @@ fi ssh "$server" "mkdir -p '$dest'" ssh "$server" "mkdir -p '$dest2'" ssh "$server" "mkdir -p '$dest3'" +ssh "$server" "mkdir -p '$prvd'" rsync -azv --update --itemize-changes --stats "$bgm" "$server:$bgmd" +if [ -d "$prv" ]; then + rsync -azv --update --itemize-changes --stats "$prv" "$server:$prvd" +fi + if [ -n "${THESIAH_SSH_OPTS:-}" ]; then rsync -azv --update --itemize-changes --stats \ -e "ssh $THESIAH_SSH_OPTS" \ -- cgit v1.2.3