diff --git a/oneoffs/update-package-consumers.sh b/oneoffs/update-package-consumers.sh index 7d8a883..ad70d2d 100755 --- a/oneoffs/update-package-consumers.sh +++ b/oneoffs/update-package-consumers.sh @@ -79,8 +79,8 @@ FAILED=0 # Find consumers using existing script CONSUMERS_OUTPUT=$("$SCRIPT_DIR/../analysis/find-consumers.sh" "$PACKAGE_PATH" 2>/dev/null) -# Extract consumer directories from output -CONSUMER_DIRS=$(echo "$CONSUMERS_OUTPUT" | grep -E '^\[REGISTRY\]|^\[PATH\]|^\[LINK\]' | awk '{print $2}') +# Extract consumer directories from output (strip ANSI color codes first) +CONSUMER_DIRS=$(echo "$CONSUMERS_OUTPUT" | sed 's/\x1b\[[0-9;]*m//g' | grep -E '^\[REGISTRY\]|^\[PATH\]|^\[LINK\]' | awk '{print $2}') if [[ -z "$CONSUMER_DIRS" ]]; then echo -e "${YELLOW}No consumers found${NC}"