mirror of
https://github.com/tw93/Mole.git
synced 2026-02-16 20:29:10 +00:00
✨ Add waiting prompt
This commit is contained in:
13
bin/clean.sh
13
bin/clean.sh
@@ -154,6 +154,19 @@ safe_clean() {
|
|||||||
return 0
|
return 0
|
||||||
fi
|
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
|
if [[ ${#existing_paths[@]} -gt 3 ]]; then
|
||||||
local temp_dir=$(mktemp -d)
|
local temp_dir=$(mktemp -d)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user