diff options
| author | yingyu5658 <i@yingyu5658.me> | 2025-12-14 15:36:25 +0800 |
|---|---|---|
| committer | yingyu5658 <i@yingyu5658.me> | 2025-12-14 15:36:25 +0800 |
| commit | 61d0cab23edbfa0d1e67d76031da7f6b101b8900 (patch) | |
| tree | 2b5610ec7d43e71e62e5be43432d0c52f72b266e /publish.sh | |
| parent | 78bfb125f30b117895206e9aea7a3a38f8457d0c (diff) | |
| download | blog-61d0cab23edbfa0d1e67d76031da7f6b101b8900.tar.gz blog-61d0cab23edbfa0d1e67d76031da7f6b101b8900.zip | |
fix #1
Diffstat (limited to 'publish.sh')
| -rw-r--r-- | publish.sh | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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 |
