summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbertagaz <bertagaz@ptitcanardnoir.org>2015-11-05 13:23:55 +0100
committerbertagaz <bertagaz@ptitcanardnoir.org>2015-11-05 13:23:55 +0100
commit61564205f6bb2f1732a393332fb0d1f161755185 (patch)
tree69cbc0eff2911ad9e7c341aa1fb759c31c2cef5b
parentae1a9223625c5bbeea89d2f532fd6a72da606360 (diff)
Simplify the remove_sikuli_vlog_files script.bugfix/10467-remove-sikuli-leftovers
There no real need to test the existence of .vlog.png files and then use `find -delete`. This find removal method is smart enough for that kind of simple use case.
-rwxr-xr-xfiles/jenkins/slaves/isotesters/remove_sikuli_vlog_files8
1 files changed, 1 insertions, 7 deletions
diff --git a/files/jenkins/slaves/isotesters/remove_sikuli_vlog_files b/files/jenkins/slaves/isotesters/remove_sikuli_vlog_files
index 1303253..cabe0c8 100755
--- a/files/jenkins/slaves/isotesters/remove_sikuli_vlog_files
+++ b/files/jenkins/slaves/isotesters/remove_sikuli_vlog_files
@@ -7,10 +7,4 @@ TOPDIR="$1"
[ ${TOPDIR} ] || exit 2
-for dir in ${TOPDIR}/*; do
- if ls ${dir}/*.vlog.png >/dev/null 2>&1; then
- find ${dir} -type f -name *.vlog.png -delete
- else
- continue
- fi
-done
+find ${TOPDIR} -type f -name *.vlog.png -delete