From eb9fe46c7b21f1d3db651a6726a2f6cf7516e16b Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Tue, 3 Feb 2026 05:29:11 +0900 Subject: modified zsh/keymaps.zsh, modified bin/hugow, modified bin/rbackup, modified Music/.music.txt --- ar/.local/bin/hugow | 33 ++++----------------------------- 1 file changed, 4 insertions(+), 29 deletions(-) (limited to 'ar/.local/bin/hugow') diff --git a/ar/.local/bin/hugow b/ar/.local/bin/hugow index 13cdf51..a715606 100755 --- a/ar/.local/bin/hugow +++ b/ar/.local/bin/hugow @@ -7,6 +7,8 @@ server="${THESIAH_SERVER:-root@thesiah.xyz}" dest="/var/www/thesiah/diary/" defaults="sy after foramonth" src="$repodir/public/diary/" +bgm="$repodir/static/bgm/" +bgmd="/var/www/thesiah/bgm/" cd "$repodir" hugo --cleanDestinationDir @@ -16,37 +18,10 @@ if [ ! -f "$out" ]; then exit 1 fi -# tmp="$(mktemp "$out.XXXXXXXX.tmp")" - -# awk -v defaults="$defaults" ' -# BEGIN { -# n = split(defaults, a, /[[:space:]]+/) -# insert = "" -# for (i = 1; i <= n; i++) { -# if (a[i] == "") continue -# name = a[i] ".mp4" -# insert = insert \ -# "
  • \n" \ -# " " name "\n" \ -# "
  • \n" -# } -# injected = 0 -# } -# { -# print -# if (!injected && $0 ~ /]*id=["'\''"]list["'\''"][^>]*>/) { -# printf("%s", insert) -# injected = 1 -# } -# } -# END { if (!injected) exit 2 } -# ' "$out" >"$tmp" -# -# mv "$tmp" "$out" -# echo "Injected defaults into: $out" -# ssh "$server" "mkdir -p '$dest'" +rsync -azv --update --itemize-changes --stats "$bgm" "$server:$bgmd" + if [ -n "${THESIAH_SSH_OPTS:-}" ]; then rsync -azv --update --itemize-changes --stats \ -e "ssh $THESIAH_SSH_OPTS" \ -- cgit v1.2.3