IGNITE-4002: Fixed directory check for the ODBC install script.
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/927ead13 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/927ead13 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/927ead13 Branch: refs/heads/ignite-1192 Commit: 927ead13979937195aca6ffb717942fb477dc1b6 Parents: 1f4ed52 Author: Igor Sapego <[email protected]> Authored: Thu Mar 23 18:13:33 2017 +0300 Committer: Igor Sapego <[email protected]> Committed: Thu Mar 23 18:13:33 2017 +0300 ---------------------------------------------------------------------- modules/platforms/cpp/odbc/install/install_amd64.cmd | 4 ++-- modules/platforms/cpp/odbc/install/install_x86.cmd | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/927ead13/modules/platforms/cpp/odbc/install/install_amd64.cmd ---------------------------------------------------------------------- diff --git a/modules/platforms/cpp/odbc/install/install_amd64.cmd b/modules/platforms/cpp/odbc/install/install_amd64.cmd index 2a2fff6..6c7de93 100644 --- a/modules/platforms/cpp/odbc/install/install_amd64.cmd +++ b/modules/platforms/cpp/odbc/install/install_amd64.cmd @@ -10,7 +10,7 @@ if [%ODBC_AMD64%] == [] ( ) if exist %ODBC_AMD64% ( - if exist %ODBC_AMD64%\ ( + for %%i IN (%ODBC_AMD64%) DO IF EXIST %%~si\NUL ( echo warning: The path you have specified seems to be a directory. Note that you have to specify path to driver file itself instead. ) echo Installing 64-bit driver: %ODBC_AMD64% @@ -33,7 +33,7 @@ if [%ODBC_X86%] == [] ( ) if exist %ODBC_X86% ( - if exist %ODBC_X86%\ ( + for %%i IN (%ODBC_X86%) DO IF EXIST %%~si\NUL ( echo warning: The path you have specified seems to be a directory. Note that you have to specify path to driver file itself instead. ) echo Installing 32-bit driver: %ODBC_X86% http://git-wip-us.apache.org/repos/asf/ignite/blob/927ead13/modules/platforms/cpp/odbc/install/install_x86.cmd ---------------------------------------------------------------------- diff --git a/modules/platforms/cpp/odbc/install/install_x86.cmd b/modules/platforms/cpp/odbc/install/install_x86.cmd index 911dbdf..af0f815 100644 --- a/modules/platforms/cpp/odbc/install/install_x86.cmd +++ b/modules/platforms/cpp/odbc/install/install_x86.cmd @@ -9,7 +9,7 @@ if [%ODBC%] == [] ( ) if exist %ODBC% ( - if exist %ODBC%\ ( + for %%i IN (%ODBC%) DO IF EXIST %%~si\NUL ( echo warning: The path you have specified seems to be a directory. Note that you have to specify path to driver file itself instead. ) echo Installing driver: %ODBC%
