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:
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 {} \+
|
||||
|
Loading…
x
Reference in New Issue
Block a user