Files
wsl-tools/bin/wsl-path
T

7 lines
265 B
Bash
Executable File

#!/bin/bash
# outputs the wsl.exe path by constructing the C:\Windows\System32 mountpoint
APP_DIR="$(dirname "$0")"
WINDOWS_MOUNT="$APP_DIR/windows-mount"
WINDOWS="$($WINDOWS_MOUNT)" || { echo Windows not mounted; exit 1; }
echo "$WINDOWS/Windows/System32/wsl.exe"