Add log messages for lengthy operations.

This commit is contained in:
Cyril Brulebois 2024-07-20 21:09:47 +02:00
parent 3586a185d6
commit 3e76b0f2d8

View File

@ -26,9 +26,13 @@ TOP_DIR=$(pwd)
xz_compress() {
FILE="$1"
if which pixz >/dev/null 2>&1; then
printf 'Compressing %s with pixz...' "$FILE"
pixz "$FILE"
echo ' done'
else
printf 'Compressing %s with xz...' "$FILE"
xz "$FILE"
echo ' done'
fi
}