<p>In <a href="https://github.com/geany/geany-plugins/pull/375#discussion_r55923361">build/gtk-bundle-from-msys2.sh</a>:</p>
<pre style='color:#555'>> +            if [ -f .INSTALL ]; then
> +                  echo "Running post_install script for \"$i\""
> +                  /bin/bash -c ". .INSTALL; post_install"
> +          fi
> +          rm -f .INSTALL .MTREE .PKGINFO .BUILDINFO
> +  done
> +}
> +
> +move_extracted_files() {
> +  echo "Move extracted data to destination directory"
> +  if [ -d mingw32 ]; then
> +          for d in bin etc home include lib libexec locale sbin share ssl var; do
> +                  if [ -d "mingw32/$d" ]; then
> +                          rm -rf $d
> +                          # prevent sporadic 'permission denied' errors on my system, not sure why they happen
> +                          sleep 0.5
</pre>
<p>As discussed on IRC, it <em>does</em> delete only $d which is intended here because mingw32/$d is moved to $d afterwards.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany-plugins/pull/375/files#r55923361">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ_5_D6LQpmTN81IbtYCxDVzPizR4ks5psuemgaJpZM4Hk4SI.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany-plugins/pull/375/files#r55923361"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>