Skip to content

Commit

Permalink
Fix missing condition in WSL check
Browse files Browse the repository at this point in the history
Signed-off-by: Fabrice Normandin <[email protected]>
  • Loading branch information
lebrice committed Nov 8, 2023
1 parent e881705 commit 477997d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion milatools/cli/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,9 @@ def code(
# Try to detect if this is being run from within the Windows Subsystem for Linux.
# If so, then we run `code` through a powershell.exe command to open code without
# issues.
running_inside_WSL = bool(shutil.which("powershell.exe"))
running_inside_WSL = sys.platform == "linux" and bool(
shutil.which("powershell.exe")
)

try:
check_disk_quota(remote)
Expand Down

0 comments on commit 477997d

Please sign in to comment.