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 | |
| parent | c5613a4ad7f67b3d5e545417c2123220a987c116 (diff) | |
modified shell/aliasrc, modified bin/hugow
| -rw-r--r-- | mac/.config/shell/aliasrc | 1 | ||||
| -rwxr-xr-x | mac/.local/bin/hugow | 8 |
2 files changed, 8 insertions, 1 deletions
diff --git a/mac/.config/shell/aliasrc b/mac/.config/shell/aliasrc index 359e951..9fc3aab 100644 --- a/mac/.config/shell/aliasrc +++ b/mac/.config/shell/aliasrc @@ -499,5 +499,6 @@ alias sps="source ${XDG_CONFIG_HOME:-${HOME}/.config}/shell/profile" alias szs="source ${XDG_CONFIG_HOME:-${HOME}/.config}/zsh/.zshrc" +alias ylogu='ylog -s recordings -c us' alias ylogt='ylog -s recordings -c us | grep $(LC_TIME=C date +%d/%b)' alias ylogy='ylog -s recordings -c us | grep $(LC_TIME=C date -v-1d +%d/%b)' 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" |
