So I have a single line bash command that checks if a directory exists. If it does, it git pulls, if it doesn't, it clones the repository. I am running a Cygwin on my Windows box and when I run this command in Cygwin it works perfectly:

```
if [ -d C:/repo ]; then cd C:/repo && "C:/Program Files (x86)/Git/bin/git.exe" pull; else "C:/Program Files (x86)/Git/bin/git.exe" clone -b develop https://repo.git C:/repo; fi

```

When I run the same command from Puppet though like this:

```
exec {'checkout repository':
    command => "if [ -d C:/repo ]; then cd C:/repo && "C:/Program Files (x86)/Git/bin/git.exe" pull; else "C:/Program Files (x86)/Git/bin/git.exe" clone -b develop https://repo.git C:/repo; fi"
}

```

I get error:

> 
> Error: ' if [ -d C:/repo ]; then cd C:/repo && "C:/Program Files
>  (x86)/Git/bin/git.exe" pull; else "C:/Program Files
>  (x86)/Git/bin/git.exe" clone -b develop <https://repo.git> C:/repo; fi'
>  is not qualified and no path was specified. Please qualify the command
>  or specify a path.
> 
> 
> 

Any ideas why?