Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
troyeguo committed Jan 7, 2024
1 parent 395c2e2 commit b7fe234
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ done
echo "</table></body></html>" >> $html_file

./b2 upload-file $BUCKET file_list.html index.html
./rclone copy file_list.html r2:$BUCKET/index.html
mv file_list.html index.html
./rclone copy index.html r2:$BUCKET

# 获取文件列表
file_list=$(./b2 ls --long "$BUCKET" "$TAG")
Expand All @@ -93,5 +94,6 @@ done
echo "</table></body></html>" >> $html_file

./b2 upload-file $BUCKET file_list.html $TAG.html
./rclone copy file_list.html r2:$BUCKET/$TAG.html
mv file_list.html $TAG.html
./rclone copy $TAG.html r2:$BUCKET

0 comments on commit b7fe234

Please sign in to comment.