mirror of
https://github.com/9technologygroup/patchmon.net.git
synced 2025-11-06 15:03:26 +00:00
fix: unset color variables before sourcing .env to prevent ANSI escape sequence errors
This commit is contained in:
2
setup.sh
2
setup.sh
@@ -2931,6 +2931,8 @@ update_installation() {
|
|||||||
|
|
||||||
# Load existing .env to get database credentials
|
# Load existing .env to get database credentials
|
||||||
if [ -f "$instance_dir/backend/.env" ]; then
|
if [ -f "$instance_dir/backend/.env" ]; then
|
||||||
|
# Unset color variables before sourcing to prevent ANSI escape sequences from leaking into .env
|
||||||
|
unset RED GREEN YELLOW BLUE NC
|
||||||
source "$instance_dir/backend/.env"
|
source "$instance_dir/backend/.env"
|
||||||
print_status "Loaded existing configuration"
|
print_status "Loaded existing configuration"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user