Do not use &> in #!/bin/sh scripts
This commit is contained in:
parent
4f5a606ce2
commit
10e8d9bb15
|
@ -248,7 +248,7 @@ if test -z "${ONLY_SHELL}" || test "x${ONLY_SHELL%sh}" != "x${ONLY_SHELL}" || te
|
||||||
if test $TEST_TYPE = daemon ; then
|
if test $TEST_TYPE = daemon ; then
|
||||||
sh -c '
|
sh -c '
|
||||||
echo $$ > tests/shell/daemon_pid
|
echo $$ > tests/shell/daemon_pid
|
||||||
$PYTHON ./scripts/powerline-daemon -s$ADDRESS -f &>tests/shell/daemon_log
|
$PYTHON ./scripts/powerline-daemon -s$ADDRESS -f >tests/shell/daemon_log 2>&1
|
||||||
' &
|
' &
|
||||||
fi
|
fi
|
||||||
echo "> Testing $TEST_TYPE"
|
echo "> Testing $TEST_TYPE"
|
||||||
|
@ -332,7 +332,7 @@ if test -z "${ONLY_SHELL}" || test "x${ONLY_SHELL%sh}" != "x${ONLY_SHELL}" || te
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! $PYTHON scripts/powerline-daemon -s$ADDRESS &> tests/shell/daemon_log_2 ; then
|
if ! $PYTHON scripts/powerline-daemon -s$ADDRESS > tests/shell/daemon_log_2 2>&1 ; then
|
||||||
echo "Daemon exited with status $?"
|
echo "Daemon exited with status $?"
|
||||||
FAILED=1
|
FAILED=1
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue