]> rtime.felk.cvut.cz Git - hercules2020/kcf.git/commitdiff
Travis: Fix (and simplify) cache cleanup command
authorMichal Sojka <michal.sojka@cvut.cz>
Mon, 24 Sep 2018 18:21:48 +0000 (20:21 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Mon, 24 Sep 2018 18:22:09 +0000 (20:22 +0200)
Previously, only core files were deleted, because -o operator has low
priority.

.travis.yml

index a8ddec50efa730a10e6acced4965e19adde9a868..3645b59936bdcc0587cc65614eefba461d8a5c0c 100644 (file)
@@ -47,6 +47,6 @@ matrix:
       addons:
         apt: { sources: *common_sources, packages: [*common_packages, unzip] }
 
-before_cache: if [ -d vot2016 ]; then find -name output.txt -o -name core -print0 | xargs -0 rm -f; fi
+before_cache: rm -f vot2016/*/{output.txt,core}
 cache:
   directories: [ vot2016 ]