Skip to content

Commit 657f7e2

Browse files
committed
Fix Windows Gradle wrapper patching
1 parent a786e53 commit 657f7e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/dev/nokee/init/internal/wrapper/GradleWrapperScript.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ private static List<String> bashScriptPath(String pathToInitScript) {
5353
private static List<String> batchScriptPath(String pathToInitScript) {
5454
return Arrays.asList(
5555
"set NOKEE_INIT_SCRIPT_FILE=%APP_HOME%\\" + separatorsToWindows(pathToInitScript),
56-
"if exist NOKEE_INIT_SCRIPT_FILE set NOKEE_ARGS=--init-script \"%NOKEE_INIT_SCRIPT_FILE%\"",
56+
"if exist \"%NOKEE_INIT_SCRIPT_FILE%\" set NOKEE_ARGS=--init-script \"%NOKEE_INIT_SCRIPT_FILE%\"",
5757
"");
5858
}
5959
}

0 commit comments

Comments
 (0)