summaryrefslogtreecommitdiff
path: root/ar/.local/bin/hugow
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-05-06 12:27:31 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-05-06 12:27:31 +0900
commitc4040c1263938890e345dde7a1b59ae4a0c78fc9 (patch)
treeed9dda1ff955ceaa1d45d946741d69fa4608610a /ar/.local/bin/hugow
parente33f6998ff9545d53d61cf64ed7a60512f23ed7d (diff)
modified bin/hugow
Diffstat (limited to 'ar/.local/bin/hugow')
-rwxr-xr-xar/.local/bin/hugow7
1 files changed, 7 insertions, 0 deletions
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" \