File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -236,7 +236,8 @@ update_uv() {
236236 # Update all uv-managed tools
237237 if [ " $DRY_RUN " = " 0" ]; then
238238 local tools
239- tools=" $( uv tool list 2> /dev/null | awk ' {print $1}' || true) "
239+ # Filter out binary lines (starting with dash) and keep only tool names
240+ tools=" $( uv tool list 2> /dev/null | grep -v ' ^-' | awk ' NF > 0 {print $1}' || true) "
240241 if [ -n " $tools " ]; then
241242 log " UV: Upgrading $( echo " $tools " | wc -l) installed tools"
242243 while IFS= read -r tool; do
Original file line number Diff line number Diff line change @@ -98,7 +98,25 @@ stage_1_refresh() {
9898 log_skip " Version data refresh (dry-run)"
9999 else
100100 local start=$( date +%s)
101- if make update >> " $LOG_FILE " 2>&1 ; then
101+ log_info " Fetching latest versions (this may take a minute)..."
102+
103+ # Run make update with progress indication
104+ (
105+ make update >> " $LOG_FILE " 2>&1 &
106+ local pid=$!
107+ local spinner=' ⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏'
108+ local i=0
109+ while kill -0 $pid 2> /dev/null; do
110+ printf " \r ${BLUE} →${RESET} Fetching... %s" " ${spinner: i++% ${# spinner} : 1} "
111+ sleep 0.1
112+ done
113+ wait $pid
114+ local exit_code=$?
115+ printf " \r"
116+ return $exit_code
117+ )
118+
119+ if [ $? -eq 0 ]; then
102120 local end=$( date +%s)
103121 local duration=$(( end - start))
104122 log_success " Fetched latest version data (${duration} s)"
@@ -289,7 +307,8 @@ stage_4_user_packages() {
289307 log_info " Upgrading uv tools..."
290308 if [ " $DRY_RUN " = " 0" ]; then
291309 local tools
292- tools=" $( uv tool list 2> /dev/null | awk ' {print $1}' || true) "
310+ # Filter out binary lines (starting with dash) and keep only tool names
311+ tools=" $( uv tool list 2> /dev/null | grep -v ' ^-' | awk ' NF > 0 {print $1}' || true) "
293312 if [ -n " $tools " ]; then
294313 local count=$( echo " $tools " | wc -l)
295314 log_info " Found $count uv tools to upgrade"
You can’t perform that action at this time.
0 commit comments