diff --git a/src/fr/devinsy/videocut/VideoCutGUI.java b/src/fr/devinsy/videocut/VideoCutGUI.java index cef6fbc..2a4c0d2 100644 --- a/src/fr/devinsy/videocut/VideoCutGUI.java +++ b/src/fr/devinsy/videocut/VideoCutGUI.java @@ -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; }