Commit 9884fa1f538ccb17aca04c89451961e6de50a2a7
1 parent
954ad675
Exists in
master
and in
1 other branch
adiciona '' no comando sed
Showing
4 changed files
with
4 additions
and
4 deletions
Show diff stats
extrator/src/extratorSRT.cpp
... | ... | @@ -39,7 +39,7 @@ void ExtratorSRT::encodingfiletoUTF8() { |
39 | 39 | .append(this->filePath); |
40 | 40 | system(recmd.c_str()); |
41 | 41 | |
42 | - string sedcmd = "sed -i $'s/\r$//' "; | |
42 | + string sedcmd = "sed -i 's/\r$//;$d' "; | |
43 | 43 | sedcmd.append(this->filePath); |
44 | 44 | system(sedcmd.c_str()); |
45 | 45 | ... | ... |
extrator/src/extratorTXT.cpp
... | ... | @@ -50,7 +50,7 @@ void ExtratorTXT::encodingfiletoUTF8() { |
50 | 50 | .append(this->filePath); |
51 | 51 | system(recmd.c_str()); |
52 | 52 | |
53 | - string sedcmd = "sed -i $'s/\r$//' "; | |
53 | + string sedcmd = "sed -i 's/\r$//;$d' "; | |
54 | 54 | sedcmd.append(this->filePath); |
55 | 55 | system(sedcmd.c_str()); |
56 | 56 | } | ... | ... |
extrator/src/extratorVTT.cpp
... | ... | @@ -39,7 +39,7 @@ void ExtratorVTT::encodingfiletoUTF8() { |
39 | 39 | .append(this->filePath); |
40 | 40 | system(recmd.c_str()); |
41 | 41 | |
42 | - string sedcmd = "sed -i $'s/\r$//' "; | |
42 | + string sedcmd = "sed -i 's/\r$//;$d' "; | |
43 | 43 | sedcmd.append(this->filePath); |
44 | 44 | system(sedcmd.c_str()); |
45 | 45 | } | ... | ... |
renderer/src/renderer.cpp
... | ... | @@ -32,7 +32,7 @@ void Renderer::executeServerScript() { |
32 | 32 | //Temporário. 'Matar' todos os processos do player. |
33 | 33 | string killcmd = "killall -9 videoCreator.x86_64"; |
34 | 34 | system(killcmd.c_str()); |
35 | - slep(2); //tempo para matar o processo | |
35 | + sleep(2); //tempo para matar o processo | |
36 | 36 | |
37 | 37 | string command = "cd "; |
38 | 38 | ... | ... |