diff --git a/scripts/deploy-win-mingw.sh b/scripts/deploy-win-mingw.sh index 5aea66429..26bdb6d55 100644 --- a/scripts/deploy-win-mingw.sh +++ b/scripts/deploy-win-mingw.sh @@ -141,7 +141,9 @@ echo "Installing plugins .." for p in $plugins; do cp -R $mingw_inst/share/qt5/plugins/$p $target # remove the debug versions - otherwise they pull in the debug Qt libs - rm $target/$p/*d.dll + shopt -s nullglob + rm -f $target/$p/*d.dll $target/$p/*.dll.debug + shopt -u nullglob done # ----------------------------------------------------------