fix export batch script (#2107)

This commit is contained in:
Glavo 2023-02-11 23:43:13 +08:00 committed by GitHub
parent 40eeee7137
commit b116186f42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -297,7 +297,7 @@ public final class CommandBuilder {
} }
public static String toBatchStringLiteral(String s) { public static String toBatchStringLiteral(String s) {
return containsEscape(s, " \t\"^&<>|") ? '"' + escape(s, '\\', '"') : s; return containsEscape(s, " \t\"^&<>|") ? '"' + escape(s, '\\', '"') + '"' : s;
} }
public static String toShellStringLiteral(String s) { public static String toShellStringLiteral(String s) {