Skip to content

Commit 99cebb0

Browse files
committed
tests/tests.sh: avoid duplicate call to uname(1)
1 parent d6885ac commit 99cebb0

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎tests/tests.sh‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ SOEXT="so"
4141
#executables
4242
DATE="date"
4343
ECHO="echo"
44-
UNAME="uname"
45-
[ $($UNAME -s) != "Darwin" ] || ECHO="/bin/echo"
44+
[ "$SYSTEM" != "Darwin" ] || ECHO="/bin/echo"
4645

4746

4847
#functions
@@ -155,7 +154,7 @@ if [ -z "$ARCH" ]; then
155154
echo "Not performing tests (could not detect architecture)"
156155
exit 0
157156
fi
158-
echo "Detected architecture: $ARCH" 1>&2
157+
echo "Detected platform: $SYSTEM/$ARCH" 1>&2
159158
_date > "$target"
160159
FAILED=
161160
echo "Performing tests:" 1>&2

0 commit comments

Comments
 (0)