From c0b55d53f5ff68f679a28adc0e5ddc4096f4fadc Mon Sep 17 00:00:00 2001 From: "Alexey Y. Fedotov" Date: Mon, 24 May 2021 09:05:55 +0300 Subject: [PATCH] =?UTF-8?q?CE:=20=D0=9F=D1=83=D1=82=D1=8C=20=D0=BA=D0=B0?= =?UTF-8?q?=D1=82=D0=B0=D0=BB=D0=BE=D0=B3=D0=B0=20=D0=BA=D0=BB=D0=B0=D1=81?= =?UTF-8?q?=D1=82=D0=B5=D1=80=D0=B0=20Windows=20(#63)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/1c_common_module.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/1c_common_module.sh b/scripts/1c_common_module.sh index f1f1bdf..51b1ffb 100755 --- a/scripts/1c_common_module.sh +++ b/scripts/1c_common_module.sh @@ -194,7 +194,7 @@ function get_server_directory { '$3 ~ uid {print $6}' /etc/passwd)/.1cv8/1C/1cv8" else SRV1CV8_DATA="$(wmic path win32_process where "caption like 'ragent.exe'" get commandline /format:csv | \ - awk -F, '/ragent/ { print $2 }' | sed -re 's/.*-d "([^"]+).*/\1/')" + awk -F, '/ragent/ { print $2 }' | sed -re 's/.*-d "([^"]+).*/\1/; s/^/\//; s/\\/\//g; s/://')" #TODO: Задавать значение SRV1CV8_DATA в случае если не удалось определить из строки запуска # (такое возможно при ручном запуске ragent) fi