Skip to content

Commit b2b24a4

Browse files
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
1 parent 3c813eb commit b2b24a4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

code/worker.sh

+5
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,11 @@ if [ x"$INPUTBASENAME" == xSubsurface ] ; then
294294
xwininfo -tree -root | grep 0x | grep '": ("' | sed -e 's/^[[:space:]]*//'
295295
fi
296296

297+
# Clean residue from previous runs, avoiding issue #3438
298+
if [ -n "$INPUTBASENAME" ] && [ -d "database/$INPUTBASENAME" ]; then
299+
rm -r "database/$INPUTBASENAME"
300+
fi
301+
297302
# Works with Xvfb
298303
# sudo apt-get -y install x11-apps netpbm xdotool # We do this in .travis.yml
299304
# -display :99 needed here?

0 commit comments

Comments
 (0)