summaryrefslogtreecommitdiff
path: root/test/test_compression.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_compression.sh')
-rwxr-xr-xtest/test_compression.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/test_compression.sh b/test/test_compression.sh
index 3d0f5667..d53e67d4 100755
--- a/test/test_compression.sh
+++ b/test/test_compression.sh
@@ -1,4 +1,4 @@
-#!/bin/bash -e
+#!/bin/sh -e
# FLAC - Free Lossless Audio Codec
# Copyright (C) 2012-2014 Xiph.Org Foundation
@@ -17,7 +17,7 @@
# restrictive of those mentioned above. See the file COPYING.Xiph in this
# distribution.
-source common.sh
+. ./common.sh
PATH=`pwd`/../src/flac:$PATH
@@ -39,9 +39,8 @@ for k in 0 1 2 3 4 5 6 7 8 ; do
echo "Error : Compression ${last_k} size ${last_size} >= compression ${k} size ${size}."
exit 1
fi
- # Need this string interpolation because OSX's 'wc -c' returns a number with
- # leading whitespace.
- let last_size="${size}+10"
+ # Need this because OSX's 'wc -c' returns a number with leading whitespace.
+ last_size=$((${size}+10))
last_k=${k}
rm -f ${fname}
done