summaryrefslogtreecommitdiff
path: root/mac/.local
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-10-18 10:34:50 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-10-18 10:34:50 +0900
commitd73c61883c468bfc5b255a13feaf640e7922524e (patch)
treee8d0283121bd66d8c1e7213b2f9c5abf0ec9428f /mac/.local
parentc5613a4ad7f67b3d5e545417c2123220a987c116 (diff)
modified shell/aliasrc, modified bin/hugow
Diffstat (limited to 'mac/.local')
-rwxr-xr-xmac/.local/bin/hugow8
1 files changed, 7 insertions, 1 deletions
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"