diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-10-18 10:34:50 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-10-18 10:34:50 +0900 |
| commit | d73c61883c468bfc5b255a13feaf640e7922524e (patch) | |
| tree | e8d0283121bd66d8c1e7213b2f9c5abf0ec9428f /mac/.local | |
| parent | c5613a4ad7f67b3d5e545417c2123220a987c116 (diff) | |
modified shell/aliasrc, modified bin/hugow
Diffstat (limited to 'mac/.local')
| -rwxr-xr-x | mac/.local/bin/hugow | 8 |
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" |
