copy_puppet_logs: gzip only files

At the end of jenkins/scripts/copy_puppet_logs.sh script,
make sure we only try to compress files and not directories.

It will avoid this kind of error:
gzip: ./ssl.txt is a directory -- ignored

Change-Id: Iab6273b16e503d1b5f81267a14f0a3d144f730a3
This commit is contained in:
Emilien Macchi 2016-04-01 20:39:32 -04:00
parent 6fab6983d7
commit 98b5dfff0a

@ -197,6 +197,6 @@ fi
# Compress all text logs
sudo find $LOG_DIR -iname '*.txt' -execdir gzip -9 {} \+
sudo find $LOG_DIR -iname '*.dat' -execdir gzip -9 {} \+
sudo find $LOG_DIR -iname '*.conf' -execdir gzip -9 {} \+
sudo find $LOG_DIR -iname '*.txt' -type f -execdir gzip -9 {} \+
sudo find $LOG_DIR -iname '*.dat' -type f -execdir gzip -9 {} \+
sudo find $LOG_DIR -iname '*.conf' -type f -execdir gzip -9 {} \+