Skip to content

Commit

Permalink
use relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
markaren committed Oct 31, 2024
1 parent 98d66e9 commit 477bda4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fmi4cpp/tools/unzipper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ bool fmi4cpp::unzip(const std::filesystem::path& zip_file, const std::filesystem

#ifdef _WIN32
// Windows: Use the built-in unzip command via PowerShell
std::string command = "tar -xf \"" + absolute(zip_file).string() + "\" -C \"" + absolute(tmp_path).string() + "\"";
std::string command = "tar -xf \"" + zip_file.string() + "\" -C \"" + tmp_path.string() + "\"";
#else
// Linux: Use the unzip command
std::string command = "unzip -o \"" + zip_file.string() + "\" -d \"" + tmp_path.string() + "\" > /dev/null 2>&1";
Expand Down

0 comments on commit 477bda4

Please sign in to comment.