clean database directory before recreating metadata (#3439)

* fix #3438

cleaning any previously created files when re-running the script

* apply suggestions

and make sure to delete the whole folder before recreating it
This commit is contained in:
Sebastian Stenzel authored and GitHub committed 2025-01-30 20:58:33 +01:00
1 parent 3c813ebcd4
commit b2b24a4166
1 file changed
+5
+5
View File
@@ -294,6 +294,11 @@ if [ x"$INPUTBASENAME" == xSubsurface ] ; then
xwininfo -tree -root | grep 0x | grep '": ("' | sed -e 's/^[[:space:]]*//'
fi
# Clean residue from previous runs, avoiding issue #3438
if [ -n "$INPUTBASENAME" ] && [ -d "database/$INPUTBASENAME" ]; then
rm -r "database/$INPUTBASENAME"
fi
# Works with Xvfb
# sudo apt-get -y install x11-apps netpbm xdotool # We do this in .travis.yml
# -display :99 needed here?