Installer says "This is Windows" when I run it in Git Bash — what should I use instead?
Asked 10,280 views2 answers
29votes
I copied the macOS/Linux one-liner into Git Bash because that is where I live on this machine. It refuses immediately:
text
This is Windows (MINGW64_NT-10.0-19044).
Use PowerShell instead:
irm https://sdods.com/install.ps1 | iex
Or install inside WSL, where this script works normally.
I do have WSL. Which one is actually the right answer if I want to run browser tests?
Both are supported, and the choice follows where your tests will run, not where you happen to be typing.
Testing a Windows browser, or you want the app on Windows: use PowerShell. The shell script deliberately refuses under MSYS/MinGW because half the paths it builds would be wrong in ways that only surface later.
Testing on Linux, or matching a Linux CI runner: install inside WSL and use the ordinary one-liner there. Inside WSL it is a normal Linux install and nothing is special about it.
What you should not do is install on Windows and then drive it from a WSL shell, or the reverse. Two filesystems, two browser caches, and the failures are confusing out of all proportion to the cause.
And if you go the WSL route, keep the workspace on the Linux side of the filesystem. Running a suite out of /mnt/c/... is slow enough that people assume the tool is slow.