3
0
mirror of https://github.com/rvalitov/zabbix-php-fpm.git synced 2023-11-05 03:30:27 +01:00

[fix] run PHP directory ending slash

This commit is contained in:
Ramil Valitov 2020-07-21 15:49:35 +03:00
parent 1551af9386
commit a34ea3ac4d
No known key found for this signature in database
GPG Key ID: 2AB186DABDFE1914

View File

@ -62,7 +62,7 @@ function getRunPHPDirectory() {
for PHP_TEST_DIR in "${LIST_OF_DIRS[@]}"; do for PHP_TEST_DIR in "${LIST_OF_DIRS[@]}"; do
RESULT_DIR=$(find "$PHP_TEST_DIR" -name 'php*-fpm.sock' -type s -exec dirname {} \; 2>/dev/null | sort | head -n1) RESULT_DIR=$(find "$PHP_TEST_DIR" -name 'php*-fpm.sock' -type s -exec dirname {} \; 2>/dev/null | sort | head -n1)
if [[ -d "$RESULT_DIR" ]]; then if [[ -d "$RESULT_DIR" ]]; then
echo "$RESULT_DIR" echo "$RESULT_DIR/"
return 0 return 0
fi fi
done done