1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 17:59:44 +00:00

Add waiting prompt

This commit is contained in:
Tw93
2025-10-04 22:40:34 +08:00
parent 9fac7a7068
commit a58be05e89

View File

@@ -154,6 +154,19 @@ safe_clean() {
return 0
fi
local progress_message
if [[ "$DRY_RUN" == "true" ]]; then
progress_message="Previewing $description..."
else
progress_message="Cleaning $description..."
fi
if [[ -t 1 ]]; then
echo -e " ${BLUE}${NC} $progress_message"
else
echo " $progress_message"
fi
if [[ ${#existing_paths[@]} -gt 3 ]]; then
local temp_dir=$(mktemp -d)