From 61d0cab23edbfa0d1e67d76031da7f6b101b8900 Mon Sep 17 00:00:00 2001 From: yingyu5658 Date: Sun, 14 Dec 2025 15:36:25 +0800 Subject: fix #1 --- publish.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/publish.sh b/publish.sh index 59be04d..9adb72c 100644 --- a/publish.sh +++ b/publish.sh @@ -6,8 +6,9 @@ #wc -m) commit_date=$(date +"%Y-%m-%d %H:%M:%S") - cd ~/blog/public || exit 1 - hugo --cleanDestinationDir --gc - git add . - git commit -m "auto update: $commit_date" - git push origin main +cd ~/blog/ +hugo --cleanDestinationDir --gc +cd ~/blog/public || exit 1 +git add . +git commit -m "auto update: $commit_date" +git push origin main -- cgit v1.2.3