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:
1 parent
3c813ebcd4
commit
b2b24a4166
1 file changed
+5
@@ -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?
|
||||
|
||||
Reference in new issue
Block a user