Skip to content

Commit

Permalink
Undo
Browse files Browse the repository at this point in the history
  • Loading branch information
BurntRanch committed Mar 6, 2024
1 parent c6db6b1 commit 5232bf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/git.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ bool TaurBackend::download_tar(string url, string out_path) {
// if this is in a directory, it will change to that directory first.
bool isNested = out_path.find("/") != -1;

// out_path.erase(sanitize(out_path.begin(), out_path.end()), out_path.end());
out_path.erase(sanitize(out_path.begin(), out_path.end()), out_path.end());
if (isNested)
return system(("cd \"" + out_path.substr(0, out_path.rfind("/")) + "\" && tar -xf \"" + out_path.substr(out_path.rfind("/") + 1) + "\"").c_str()) == 0;
else
Expand Down

0 comments on commit 5232bf6

Please sign in to comment.