Skip to content

Commit 72bdedc

Browse files
committed
Update PackageMojo.java
1 parent 2825320 commit 72bdedc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/github/fvarrui/javapackager/PackageMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ private void generateDmgImage() throws MojoExecutionException {
885885
String result = CommandUtils.execute("hdiutil", "attach", "-readwrite", "-noverify", "-noautoopen", tempDmgFile);
886886
String deviceName = Arrays.asList(result.split("\n"))
887887
.stream()
888-
.filter(s -> s.endsWith(mountFolder.getAbsolutePath()))
888+
.filter(s -> s.contains(mountFolder.getAbsolutePath()))
889889
.map(s -> StringUtils.normalizeSpace(s))
890890
.map(s -> s.split(" ")[0])
891891
.findFirst().get();

0 commit comments

Comments
 (0)