2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-28 20:53:35 +08:00

artiq_flash: fix stderr redirections

This commit is contained in:
Sebastien Bourdeauducq 2015-04-11 23:43:33 +08:00
parent 8a2b8fc634
commit 07b8e1292f

View File

@ -109,7 +109,7 @@ check_return() {
exit
}
xc3sprog -c $CABLE -R 2&>1 > /dev/null
xc3sprog -c $CABLE -R > /dev/null 2>&1
if [ "$?" != "0" ]
then
echo "Flashing failed. Maybe you do not have permission to access the USB device?"
@ -139,4 +139,4 @@ then
xc3sprog -v -c $CABLE -I$PROXY_PATH/$PROXY $BIN_PREFIX/runtime.fbi:w:$RUNTIME_ADDR:BIN
fi
echo "Done."
xc3sprog -v -c $CABLE -R 2&>1 > /dev/null
xc3sprog -v -c $CABLE -R > /dev/null 2>&1