diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-11-08 15:43:37 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-11-08 15:43:37 +0900 |
| commit | 1d48b4e08f62c2fe71ac59da2eee250408990bc2 (patch) | |
| tree | 69c3b49e274d89cc424d9a7cada2cf9649b47b75 | |
| parent | d41297495da2552d46776178833adfa68520a359 (diff) | |
modified bin/hugow, modified bin/hugow
| -rwxr-xr-x | ar/.local/bin/hugow | 6 | ||||
| -rwxr-xr-x | 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 |
