Skip to content

Commit b116186

Browse files
authored
fix export batch script (#2107)
1 parent 40eeee7 commit b116186

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

HMCLCore/src/main/java/org/jackhuang/hmcl/util/platform/CommandBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ private static String escape(String str, char... escapeChars) {
297297
}
298298

299299
public static String toBatchStringLiteral(String s) {
300-
return containsEscape(s, " \t\"^&<>|") ? '"' + escape(s, '\\', '"') : s;
300+
return containsEscape(s, " \t\"^&<>|") ? '"' + escape(s, '\\', '"') + '"' : s;
301301
}
302302

303303
public static String toShellStringLiteral(String s) {

0 commit comments

Comments
 (0)