From b04a7e821281a6fe95d540931ba8bf1d6e2ef8aa Mon Sep 17 00:00:00 2001 From: nikitamikhaylov Date: Thu, 17 Dec 2020 23:54:48 +0300 Subject: [PATCH] style --- programs/install/Install.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/programs/install/Install.cpp b/programs/install/Install.cpp index e1934c2ca5a..52e5e71fd05 100644 --- a/programs/install/Install.cpp +++ b/programs/install/Install.cpp @@ -156,7 +156,7 @@ int mainEntryClickHouseInstall(int argc, char ** argv) #if defined(OS_DARWIN) uint32_t path_length = 0; _NSGetExecutablePath(nullptr, &path_length); - if (path_length <= 1) + if (path_length <= 1) Exception(ErrorCodes::FILE_DOESNT_EXIST, "Cannot obtain path to the binary"); std::string path(path_length, std::string::value_type()); @@ -180,6 +180,8 @@ int mainEntryClickHouseInstall(int argc, char ** argv) /// TODO An option to link instead of copy - useful for developers. + std::cout << options["prefix"].as() << std::endl; + fs::path prefix = fs::path(options["prefix"].as()); fs::path bin_dir = prefix / fs::path(options["binary-path"].as());