From d73c61883c468bfc5b255a13feaf640e7922524e Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sat, 18 Oct 2025 10:34:50 +0900 Subject: modified shell/aliasrc, modified bin/hugow --- mac/.local/bin/hugow | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'mac/.local') diff --git a/mac/.local/bin/hugow b/mac/.local/bin/hugow index b96cc93..d6be046 100755 --- a/mac/.local/bin/hugow +++ b/mac/.local/bin/hugow @@ -58,7 +58,13 @@ 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" -- cgit v1.2.3