From 1d48b4e08f62c2fe71ac59da2eee250408990bc2 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sat, 8 Nov 2025 15:43:37 +0900 Subject: modified bin/hugow, modified bin/hugow --- ar/.local/bin/hugow | 6 +++++- mac/.local/bin/hugow | 2 -- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ar/.local/bin/hugow b/ar/.local/bin/hugow index b96cc93..0460174 100755 --- a/ar/.local/bin/hugow +++ b/ar/.local/bin/hugow @@ -58,7 +58,11 @@ fi if [ -n "${1-}" ]; then new="$repodir/content/recordings/$1" - [ -f "$new" ] && rsync -az --update "$new" "$server:$dest" + if [ -f "$new" ]; then + rsync -az --update "$new" "$server:$dest" + elif [ -d "$new" ]; then + rsync -az --update "$new/" "$server:$dest$(basename "$new")/" + fi fi ssh "$THESIAH_SERVER" "chmod 644 $dest/index.html" diff --git a/mac/.local/bin/hugow b/mac/.local/bin/hugow index d6be046..0460174 100755 --- a/mac/.local/bin/hugow +++ b/mac/.local/bin/hugow @@ -59,10 +59,8 @@ fi if [ -n "${1-}" ]; then new="$repodir/content/recordings/$1" if [ -f "$new" ]; then - # 개별 파일인 경우 rsync -az --update "$new" "$server:$dest" elif [ -d "$new" ]; then - # 폴더인 경우, 폴더 전체를 동기화 rsync -az --update "$new/" "$server:$dest$(basename "$new")/" fi fi -- cgit v1.2.3