Fix: Escape \ bash variable in CaInstallerService to prevent PHP interpolation crash

This commit is contained in:
dyzulk
2026-01-08 10:32:14 +07:00
parent 8c8c1798c9
commit e3db3be095

View File

@@ -254,17 +254,17 @@ class CaInstallerService
"\n" . "\n" .
"msg_info() {\n" . "msg_info() {\n" .
" local msg=\"$1\"\n" . " local msg=\"$1\"\n" .
" echo -ne \" \${BL}[ INFO ]\${CL} ${msg}...\"\n" . " echo -ne \" \${BL}[ INFO ]\${CL} \${msg}...\"\n" .
"}\n" . "}\n" .
"\n" . "\n" .
"msg_ok() {\n" . "msg_ok() {\n" .
" local msg=\"$1\"\n" . " local msg=\"$1\"\n" .
" echo -e \"\${BFR} \${GN}[ OK ]\${CL} ${msg}\"\n" . " echo -e \"\${BFR} \${GN}[ OK ]\${CL} \${msg}\"\n" .
"}\n" . "}\n" .
"\n" . "\n" .
"msg_err() {\n" . "msg_err() {\n" .
" local msg=\"$1\"\n" . " local msg=\"$1\"\n" .
" echo -e \"\${BFR} \${RD}[ FAIL ]\${CL} ${msg}\"\n" . " echo -e \"\${BFR} \${RD}[ FAIL ]\${CL} \${msg}\"\n" .
"}\n" . "}\n" .
"\n" . "\n" .
"check_root() {\n" . "check_root() {\n" .