mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-11-22 00:01:05 -05:00
polish src/gradlew.ts
This commit is contained in:
parent
7a4f128c22
commit
091093ee61
1 changed files with 8 additions and 6 deletions
|
@ -1,9 +1,11 @@
|
|||
export function wrapperFilename() {
|
||||
const isWindows = process.platform === "win32";
|
||||
return isWindows ? "gradlew.bat" : "gradlew";
|
||||
const IS_WINDOWS = process.platform === "win32";
|
||||
|
||||
|
||||
export function wrapperFilename(): string {
|
||||
return IS_WINDOWS ? "gradlew.bat" : "gradlew";
|
||||
}
|
||||
|
||||
export function installScriptFilename() {
|
||||
const isWindows = process.platform === "win32";
|
||||
return isWindows ? "gradle.bat" : "gradle";
|
||||
|
||||
export function installScriptFilename(): string {
|
||||
return IS_WINDOWS ? "gradle.bat" : "gradle";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue