Refactor colored install log format - implement log functions and update all install scripts

Co-authored-by: andrejusk <7396847+andrejusk@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-06-20 20:37:01 +00:00
parent a4f05995bd
commit f6c737b5e4
18 changed files with 56 additions and 24 deletions

View File

@@ -8,19 +8,19 @@
# skip if in WSL
if [[ -n "$WSL_DISTRO_NAME" ]]; then
echo -e "${YELLOW}Running in WSL${NC}"
log_warn "Running in WSL"
export SKIP_DOCKER_CONFIG=1
fi
# skip if in CODESPACES
if [[ -n "$CODESPACES" ]]; then
echo -e "${YELLOW}Running in GitHub Codespaces${NC}"
log_warn "Running in GitHub Codespaces"
export SKIP_DOCKER_CONFIG=1
fi
# skip on mac
if [[ "$OSTYPE" == "darwin"* ]]; then
echo -e "${YELLOW}Running on macOS${NC}"
log_warn "Running on macOS"
export SKIP_DOCKER_CONFIG=1
fi
@@ -57,5 +57,5 @@ if [[ -z "$SKIP_DOCKER_CONFIG" ]]; then
fi
docker --version
else
echo -e "${YELLOW}Skipping Docker configuration${NC}"
log_warn "Skipping Docker configuration"
fi