Commit 0ccf4397 authored by Cédric Marie's avatar Cédric Marie
Browse files

myaudiotags: Remove right-align for saved bytes



In 'clean' command, print saved bytes with %d instead of %4d. There is
no need to align, and the value 4 was kind of arbitrary.
Signed-off-by: default avatarCédric Marie <cedric@hjuvi.lautre.net>
parent 0e88fe8b
......@@ -252,7 +252,7 @@ if [ "$command" = "clean" ]; then
metaflac --import-tags-from=$tags_filename "$file"
metaflac --dont-use-padding --remove --block-type=PADDING "$file"
new_size=`stat -c %s "$file"`
printf "(saved %4d bytes) $file\n" $(($old_size - $new_size))
printf "(saved %d bytes) $file\n" $(($old_size - $new_size))
done
}
rm -f $tags_filename
......@@ -323,7 +323,7 @@ if [ "$command" = "clean" ]; then
id3v2 --id3v2-only --comment "$tag_comment" "$file"
fi
new_size=`stat -c %s "$file"`
printf "(saved %4d bytes) $file\n" $(($old_size - $new_size))
printf "(saved %d bytes) $file\n" $(($old_size - $new_size))
done
}
rm -f $tags_filename
......@@ -395,7 +395,7 @@ if [ "$command" = "clean-single" ]; then
metaflac --import-tags-from=$tags_filename "$file"
metaflac --dont-use-padding --remove --block-type=PADDING "$file"
new_size=`stat -c %s "$file"`
printf "(saved %4d bytes) $file\n" $(($old_size - $new_size))
printf "(saved %d bytes) $file\n" $(($old_size - $new_size))
rm -f $tags_filename
# Set read-only permission
......@@ -430,7 +430,7 @@ if [ "$command" = "clean-single" ]; then
id3v2 --id3v2-only --comment "$tag_comment" "$file"
fi
new_size=`stat -c %s "$file"`
printf "(saved %4d bytes) $file\n" $(($old_size - $new_size))
printf "(saved %d bytes) $file\n" $(($old_size - $new_size))
rm -f $tags_filename
# Set read-only permission
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment