Closed VAllens closed 6 years ago
Now, this sh script is running pretty well on my machine
Please submit a PR with it, thanks!
I submitted a PR
This is probably a symptom of WSL (Windows Subsystem for Linux) bash vs git bash. If you have WSL installed on Windows 10 then the WSL bash is first in the path and the mountpoint for the C drive is different than what git bash has. I don't know why we can't all get along: /c /mnt/c /cygdrive/c 🙄
If you use:
export PATH="$PATH:/c/Program Files (x86)/VMware/VMware Workstation:/mnt/c/Program Files (x86)/VMware/VMware Workstation"
then it will work with both (ugly kluge, but oh well) -- and if VMware workstation is installed in D: or soemwhere else then even that won't work. But that is a topic for another day and another issue.
Your script code, run with WSL (Windows Subsystem for Linux) bash
, no problem.
There's a problem running in git bash
.
You can close this issue, thank you so much.
1.Path error
export PATH="$PATH:/mnt/c/Program Files (x86)/VMware/VMware Workstation"
should be changed toexport PATH="$PATH:/c/Program Files (x86)/VMware/VMware Workstation"
2.Syntax error
vmrun.exe list | grep \""${VM}"\" &> /dev/null
should be changed tovmrun.exe list | grep "${VM}" &> /dev/null
This full code: