don't export DYLD_LIBRARY_PATH multiple times
This commit is contained in:
parent
102671e498
commit
b513d6a07b
3 changed files with 4 additions and 4 deletions
|
@ -80,7 +80,7 @@ int create_disk_index(std::string const& filename, bool silent = true)
|
|||
std::string cmd;
|
||||
if (std::getenv("DYLD_LIBRARY_PATH") != nullptr)
|
||||
{
|
||||
cmd += std::string("export DYLD_LIBRARY_PATH=") + std::getenv("DYLD_LIBRARY_PATH") + " && ";
|
||||
cmd += std::string("DYLD_LIBRARY_PATH=") + std::getenv("DYLD_LIBRARY_PATH") + " ";
|
||||
}
|
||||
cmd += "mapnik-index " + filename;
|
||||
if (silent)
|
||||
|
|
|
@ -66,7 +66,7 @@ int create_disk_index(std::string const& filename, bool silent = true)
|
|||
std::string cmd;
|
||||
if (std::getenv("DYLD_LIBRARY_PATH") != nullptr)
|
||||
{
|
||||
cmd += std::string("export DYLD_LIBRARY_PATH=") + std::getenv("DYLD_LIBRARY_PATH") + " && ";
|
||||
cmd += std::string("DYLD_LIBRARY_PATH=") + std::getenv("DYLD_LIBRARY_PATH") + " ";
|
||||
}
|
||||
cmd += "mapnik-index " + filename;
|
||||
if (silent)
|
||||
|
|
|
@ -43,7 +43,7 @@ int run(std::string const& command, bool silent = false)
|
|||
std::string cmd;
|
||||
if (std::getenv("DYLD_LIBRARY_PATH") != nullptr)
|
||||
{
|
||||
cmd += std::string("export DYLD_LIBRARY_PATH=") + std::getenv("DYLD_LIBRARY_PATH") + " && ";
|
||||
cmd += std::string("DYLD_LIBRARY_PATH=") + std::getenv("DYLD_LIBRARY_PATH") + " ";
|
||||
}
|
||||
cmd += command;
|
||||
if (silent)
|
||||
|
@ -91,4 +91,4 @@ TEST_CASE("postgis") {
|
|||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue