<p>In <a href="https://github.com/geany/geany-plugins/pull/375#discussion_r55923234">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>Isn't this deleting not only $d?</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#r55923234">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ1wPnBG7CVQkgjprNxmXQJgqM-6-ks5psuWhgaJpZM4Hk4SI.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#r55923234"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>