Fixed path in md5sum file.

This commit is contained in:
Christian P. MOMON 2020-11-08 01:56:30 +01:00
parent ac5c666839
commit 0b3100139e

View file

@ -185,11 +185,18 @@ public class VideoCutGUI extends JFrame
case '!':
{
String command = String.format("mv t.%s %s; md5sum %s > %s.md5", FilenameUtils.getExtension(VideoCutGUI.this.data.getEscapedFileName()),
VideoCutGUI.this.data.getEscapedFileName(), VideoCutGUI.this.data.getEscapedFileName(), VideoCutGUI.this.data.getEscapedFileName());
//
String command = String.format("mv t.%s %s", FilenameUtils.getExtension(VideoCutGUI.this.data.getEscapedFileName()), VideoCutGUI.this.data.getEscapedFileName());
System.out.println("command=" + command);
String log = CmdExec.run("bash", "-c", command);
VideoCutUtils.notify("Move and md5sum done.");
System.out.println("log=[" + log + "]");
//
command = String.format("md5sum %s > %s.md5", new File(VideoCutGUI.this.data.getEscapedFileName()).getName(), VideoCutGUI.this.data.getEscapedFileName());
System.out.println("command=" + command);
log = CmdExec.run("bash", "-c", command);
System.out.println("log=[" + log + "]");
VideoCutUtils.notify("Move and md5sum done.");
}
break;
}