From 29eca541b808f0e60b2a4c75e4ceaced841a2c1e Mon Sep 17 00:00:00 2001 From: David Ahern Date: Mon, 7 Jan 2019 21:34:42 -0700 Subject: [PATCH] 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 --- scripts/check-reallocarray.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/check-reallocarray.sh b/scripts/check-reallocarray.sh index aced5a1..74b4a75 100755 --- a/scripts/check-reallocarray.sh +++ b/scripts/check-reallocarray.sh @@ -1,4 +1,4 @@ -#/bin/sh +#!/bin/sh tfile=$(mktemp /tmp/test_reallocarray_XXXXXXXX.c) ofile=${tfile%.c}.o @@ -13,6 +13,6 @@ int main(void) } EOL -gcc $tfile -o $ofile >& /dev/null +gcc $tfile -o $ofile >/dev/null 2>&1 if [ $? -ne 0 ]; then echo "FAIL"; fi /bin/rm -f $tfile $ofile