From d5438fe0ea4a040523b2b5486a36d303df28ee86 Mon Sep 17 00:00:00 2001 From: kelson42 Date: Tue, 20 Dec 2011 19:52:26 +0000 Subject: [PATCH] Can now deal with POSIX binary (not only with exe) --- src/installer/kiwix-install.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/installer/kiwix-install.cpp b/src/installer/kiwix-install.cpp index d59f624..680f2d5 100644 --- a/src/installer/kiwix-install.cpp +++ b/src/installer/kiwix-install.cpp @@ -122,8 +122,11 @@ int main(int argc, char **argv) { /* Check if kiwixPath/kiwix/kiwix.exe exists */ string kiwixBinaryPath = computeAbsolutePath(kiwixPath, "kiwix/kiwix.exe"); if (!fileExists(kiwixBinaryPath)) { - cerr << "Unable to find the Kiwix Windows binary at '" << kiwixBinaryPath << "'." << endl; - exit(1); + kiwixBinaryPath = computeAbsolutePath(kiwixPath, "kiwix/kiwix"); + if (!fileExists(kiwixBinaryPath)) { + cerr << "Unable to find the Kiwix binary at '" << kiwixBinaryPath << "[.exe]'." << endl; + exit(1); + } } /* Check if the directory "data" structure exists */