Skip to content

Commit

Permalink
Reposition force local
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikdutt18 committed May 26, 2020
1 parent 9743a5e commit 8e25348
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions utils/utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,11 @@ class Utils
std::replace(pathForExtractionTemp.begin(), pathForExtractionTemp.end(),
'/', '\\');

command = command + boost::filesystem::current_path().string() + "\\" +
pathToArchiveTemp + "--force-local";
command = "tar --force-local -xvzf " +
boost::filesystem::current_path().string() + "\\" +
pathToArchiveTemp + " -C " +
boost::filesystem::current_path().string() + "\\" +
pathForExtractionTemp;
#else
command = command + boost::filesystem::current_path().string() + "/" +
pathToArchive + " -C " + boost::filesystem::current_path().string() +
Expand Down

0 comments on commit 8e25348

Please sign in to comment.