logo

utils-std

Collection of commonly available Unix tools
commit: 68e67c3936ae23ddb8d05ba168e04ad68ad59f65
parent 0b0b9666b46a98d9ab5e6d06eeaa64a696292a3e
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri, 23 Aug 2024 05:15:22 +0200

test-cmd/split.sh: Use %s in case $size is errorneous

Diffstat:

Mtest-cmd/split.sh4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test-cmd/split.sh b/test-cmd/split.sh @@ -45,7 +45,7 @@ check_splits_b32() size="$(wc -c $i | cut -d' ' -f1)" if [ "$size" != "32" ] then - printf "# Expected 32 bytes but '%s' is %d bytes\n" "$i" "$size" + printf "# Expected 32 bytes but '%s' is %s bytes\n" "$i" "$size" return 1 fi done @@ -58,7 +58,7 @@ check_splits_l10() size="$(wc -l $i | cut -d' ' -f1)" if [ "$size" != "10" ] then - printf "# Expected 10 lines but '%s' has %d lines\n" "$i" "$size" + printf "# Expected 10 lines but '%s' has %s lines\n" "$i" "$size" return 1 fi done