Skip to content

Commit

Permalink
Log wsl-shell wrapper commands if debug is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Vampire committed Dec 17, 2021
1 parent 9bebe53 commit eb3be47
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import fs.readdirSync
import fs.writeFileSync
import getInput
import info
import isDebug
import kotlinext.js.jsObject
import kotlinx.coroutines.CoroutineStart.LAZY
import kotlinx.coroutines.GlobalScope
Expand Down Expand Up @@ -339,12 +340,12 @@ suspend fun writeWslShellWrapper() {
}

val scriptContent = (if (bashMissing) """
@ECHO OFF
@ECHO ${if (isDebug()) "ON" else "OFF"}
ECHO Bash is not available by default in '${distribution.id}', please either add it to 'additional-packages' input or configure a different 'wsl-shell-command' >&2
EXIT /B 1
""" else """
@ECHO OFF
@ECHO ${if (isDebug()) "ON" else "OFF"}
SETLOCAL
Expand Down

0 comments on commit eb3be47

Please sign in to comment.