Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit 976966f

Browse files
JohnVillalovosgrgustaf
authored andcommitted
[build] Fix unary operator expected error on macOS (#1824)
The macOS uses bash 3.x and the '-v' test command is unknown and we see the error "[: -v: unary operator expected". Change test to use '-z' to resolve this issue. Signed-off-by: John L. Villalovos <[email protected]>
1 parent 490ff66 commit 976966f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/trlite

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ if [ ! -d "$ZJS_BASE" ]; then
2929
exit 1
3030
fi
3131

32-
if [ ! -v TRAVIS_COMMIT_RANGE ]; then
32+
if [[ -z ${TRAVIS_COMMIT_RANGE} ]]; then
3333
TRAVIS_COMMIT_RANGE=$(git log origin/master..HEAD --format='format:%H')
3434
fi
3535

0 commit comments

Comments
 (0)