This commit is contained in:
sushen339
2025-10-20 13:54:58 +08:00
parent 0e326f10fc
commit a671697ea6
+2 -1
View File
@@ -68,8 +68,9 @@ run_with_progress() {
wait $pid
local exit_code=$?
# 清除行并显示最终状态
if [ $exit_code -eq 0 ]; then
printf "\r%s: %b✓%b 完成\n" "$description" "${COLOR_GREEN}" "${COLOR_RESET}"
printf "\r%s: %b✓%b 完成 \n" "$description" "${COLOR_GREEN}" "${COLOR_RESET}"
else
printf "\r%s: %b✗%b 失败 \n" "$description" "${COLOR_RED}" "${COLOR_RESET}"
fi