mirror of
https://github.com/netdata/libbpf.git
synced 2026-04-03 23:29:06 +08:00
Fix redirect in check-reallocarray (#7)
Builds on debian stretch are failing due to: ../scripts/check-reallocarray.sh: 17: ../scripts/check-reallocarray.sh: Syntax error: Bad fd number Fix the redirect of stdout and stderr. Signed-off-by: David Ahern <dsahern@gmail.com>
This commit is contained in:
committed by
yonghong-song
parent
07a48dcda2
commit
29eca541b8
@@ -1,4 +1,4 @@
|
|||||||
#/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
tfile=$(mktemp /tmp/test_reallocarray_XXXXXXXX.c)
|
tfile=$(mktemp /tmp/test_reallocarray_XXXXXXXX.c)
|
||||||
ofile=${tfile%.c}.o
|
ofile=${tfile%.c}.o
|
||||||
@@ -13,6 +13,6 @@ int main(void)
|
|||||||
}
|
}
|
||||||
EOL
|
EOL
|
||||||
|
|
||||||
gcc $tfile -o $ofile >& /dev/null
|
gcc $tfile -o $ofile >/dev/null 2>&1
|
||||||
if [ $? -ne 0 ]; then echo "FAIL"; fi
|
if [ $? -ne 0 ]; then echo "FAIL"; fi
|
||||||
/bin/rm -f $tfile $ofile
|
/bin/rm -f $tfile $ofile
|
||||||
|
|||||||
Reference in New Issue
Block a user