From e6f5a587e472615a57fd7d8efeffee5aecfba4c0 Mon Sep 17 00:00:00 2001 From: Otthorn Date: Fri, 19 Feb 2021 01:11:48 +0100 Subject: [PATCH] [lint] FIX SC2006: use --- pdf-optimize | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pdf-optimize b/pdf-optimize index ad9df3b..0d72042 100755 --- a/pdf-optimize +++ b/pdf-optimize @@ -136,11 +136,11 @@ ${bold}$output_path${normal}." function compute_compression { - input_size=`du "$input_path" | cut -f1` - output_size=`du "$output_path" | cut -f1` - percentage=`echo "scale=1;$output_size / $input_size * 100" | bc -l` - input_size_h=`du -h "$input_path" | cut -f1` - output_size_h=`du -h "$output_path" | cut -f1` + input_size=$(du "$input_path" | cut -f1) + output_size=$(du "$output_path" | cut -f1) + percentage=$(echo "scale=1;$output_size / $input_size * 100" | bc -l) + input_size_h=$(du -h "$input_path" | cut -f1) + output_size_h=$(du -h "$output_path" | cut -f1) echo "Size reduced from ${bold}$input_size_h${normal} to \ ${bold}$output_size_h${normal} [$percentage %]"