# Can't download Docker-Machine

**URL:** <https://forum.codewithmosh.com/t/cant-download-docker-machine/20166>\
**Category:** Docker\
**Created:** [May 10, 2023, 3:57am UTC](https://forum.codewithmosh.com/t/cant-download-docker-machine/20166 "2023-05-10T03:57:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![j\_bi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/j_bi/32/6215_2.png) [@j\_bi](https://forum.codewithmosh.com/u/j_bi)\
**Post date:** [May 10, 2023, 3:57am UTC](https://forum.codewithmosh.com/t/cant-download-docker-machine/20166/1 "2023-05-10T03:57:36Z")

</div>

I’m on Windows and I opened git bash and posted this command:

> if [[! -d “$HOME/bin”]]; then mkdir -p “$HOME/bin”; fi &&   
> curl -L [https://github.com/docker/machine/releases/download/v0.16.2/docker-machine-Windows-x86\_64.exe](https://github.com/docker/machine/releases/download/v0.16.2/docker-machine-Windows-x86_64.exe) \> “$HOME/bin/docker-machine.exe” &&   
> chmod +x “$HOME/bin/docker-machine.exe”

It say this

> bash: syntax error near unexpected token `then’

I tried the same command in cmd and it says this:

> The system cannot find the path specified.

---

<div class="post-metadata">

**Author:** ![ray.hatfield](https://avatars.discourse-cdn.com/v4/letter/r/a4c791/32.png) [@ray.hatfield](https://forum.codewithmosh.com/u/ray.hatfield)\
**Post date:** [May 10, 2023, 4:46am UTC](https://forum.codewithmosh.com/t/cant-download-docker-machine/20166/2 "2023-05-10T04:46:55Z")

</div>

Don’t know if this is the problem or if this happened with the forum formatting but it looks like you’ve got smart quotes instead of dumb ones. I’ve copied your sample and replaced them below for convenience.

```bash
if [[! -d "$HOME/bin"]]; then mkdir -p "$HOME/bin"; fi &&
curl -L https://github.com/docker/machine/releases/download/v0.16.2/docker-machine-Windows-x86_64.exe > "$HOME/bin/docker-machine.exe" &&
chmod +x "$HOME/bin/docker-machine.exe"

```
