mirror of
https://github.com/10h30/kazewp.git
synced 2026-05-12 15:21:20 +09:00
501d29cad7
- Introduced a log() function to capture console output to a file - Added date separator and blank lines for better readability - Stripped ANSI color codes to avoid strange characters in the log
13 lines
263 B
Bash
13 lines
263 B
Bash
if [ -t 1 ]; then
|
|
# Terminal supports colors
|
|
NC='\033[0m' # No Color
|
|
RED='\033[0;31m'
|
|
GREEN='\033[0;32m'
|
|
BLUE='\033[0;34m'
|
|
else
|
|
# Disable colors for non-terminal outputs (like logs)
|
|
NC=''
|
|
RED=''
|
|
GREEN=''
|
|
BLUE=''
|
|
fi |