title: Unable to execute a bash script in local windows gitlab runner
body: <h2>Context</h2>
  <p>I want to run a bash script during the building stage of my CI.</p>
  <p>So far, MacOS building works fine and Unix is in progress but I cannot execute the scripts in my Windows building stage.</p>
  <hr />
  <h2>Runner</h2>
  <p>We run a local gitlab runner on Windows 10 home where WSL is configured, Bash for Windows installed and working :
  <a href="https://i.stack.imgur.com/IzEKt.png" rel="nofollow noreferrer">Bash executing in Windows powershell</a></p>
  <hr />
  <h2>Gitlab CI</h2>
  <p>Here is a small example that highlights the issue.</p>
  <p><strong>gitlab-ci.yml</strong></p>
  <pre><code>stages:
    - test
    - build
  
  build-test-win:
    stage: build
    tags:
      - runner-qt-windows
    script:
      - ./test.sh
  </code></pre>
  <p><strong>test.sh</strong></p>
  <pre><code>#!/bin/bash
  
  echo &quot;test OK&quot;
  </code></pre>
  <hr />
  <h2>Job</h2>
  <pre><code>Running with gitlab-runner 13.4.1 (e95f89a0)
    on runner qt on windows 8KwtBu6r
  Resolving secrets 00:00
  Preparing the &quot;shell&quot; executor 00:00
  Using Shell executor...
  Preparing environment 00:01
  Running on DESKTOP-5LUC498...
  Getting source from Git repository
  Fetching changes with git depth set to 50...
  Reinitialized existing Git repository in C:/Gitlab-Ci/builds/8KwtBu6r/0/&lt;company&gt;/projects/player-desktop/.git/
  Checking out f8de4545 as 70-pld-demo-player-ecran-player...
  Removing .qmake.stash
  Removing Makefile
  Removing app/
  Removing business/
  Removing &lt;company&gt;player/
  git-lfs/2.11.0 (GitHub; windows amd64; go 1.14.2; git 48b28d97)
  Skipping Git submodules setup
  Executing &quot;step_script&quot; stage of the job script 00:02
  $ ./test.sh
  Cleaning up file based variables 00:01
  Job succeeded
  </code></pre>
  <hr />
  <h2>Issue</h2>
  <p>As you can see, the echo message &quot;test OK&quot; is not visible in the job output.
  Nothing seems to be executed but no error is shown and running the script on the Windows device directly works fine.</p>
  <p>In case you are wondering, this is a Qt application built via qmake, make and deployed using windeployqt in a bash script (where the issue is).</p>
  <p>Any tips or help would be appreciated.</p>
  <p>edit : Deploy script contains ~30 lines which would make the gitlab-ci yaml file hard to read if the commands are put directly in the yaml instead of an external shell executed during the CI.</p>
  <p><a href="https://i.stack.imgur.com/FVEsT.png" rel="nofollow noreferrer">Executing the script from the Windows env</a></p>