From 36ec0200a6fc212f80e2e08b7a2e2d63413ee119 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Fri, 19 Feb 2021 07:18:39 +0530 Subject: [PATCH] Fix cache support for cubrid and pdo_cubrid --- src/scripts/ext/cubrid.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/scripts/ext/cubrid.sh b/src/scripts/ext/cubrid.sh index b49c7f091..2d4913e08 100644 --- a/src/scripts/ext/cubrid.sh +++ b/src/scripts/ext/cubrid.sh @@ -24,7 +24,9 @@ set_cubrid_branch() { } add_cubrid_helper() { - if ! [ -e "${ext_dir:?}/$ext.so" ]; then + ext=$1 + enable_extension "$ext" extension + if ! check_extension "$ext"; then status='Installed and enabled' set_cubrid_repo set_cubrid_branch @@ -44,7 +46,7 @@ add_cubrid_helper() { add_cubrid() { ext=$1 status='Enabled' - add_cubrid_helper >/dev/null 2>&1 + add_cubrid_helper "$ext" >/dev/null 2>&1 add_extension_log "$ext" "$status" check_extension "$ext" && add_license_log } \ No newline at end of file