Skip to content

Commit ad5d1e0

Browse files
rhowesparkprime
authored andcommitted
Use printf rather than 'echo -n'
This is more POSIX compliant, handy for MacOS users.
1 parent a96ede9 commit ad5d1e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ set -e
33

44
JSONNET_BIN="${JSONNET_BIN:-./jsonnet}"
55
TEST_SNIPPET="std.assertEqual(({ x: 1, y: self.x } { x: 2 }).y, 2)"
6-
echo -n "snippet: "
6+
printf "snippet: "
77
"$JSONNET_BIN" -e "${TEST_SNIPPET}" || FAIL=TRUE
88

99
if [ -z "$DISABLE_LIB_TESTS" ]; then
10-
echo -n 'libjsonnet_test_snippet: '
10+
printf 'libjsonnet_test_snippet: '
1111
LD_LIBRARY_PATH=. ./libjsonnet_test_snippet "${TEST_SNIPPET}" || FAIL=TRUE
12-
echo -n 'libjsonnet_test_file: '
12+
printf 'libjsonnet_test_file: '
1313
LD_LIBRARY_PATH=. ./libjsonnet_test_file "test_suite/object.jsonnet" || FAIL=TRUE
1414
fi
1515
examples/check.sh || FAIL=TRUE

0 commit comments

Comments
 (0)