forked from M-Labs/artiq
1
0
Fork 0

artiq_flash: fix stderr redirections

This commit is contained in:
Sebastien Bourdeauducq 2015-04-11 23:43:33 +08:00
parent 8a2b8fc634
commit 07b8e1292f
1 changed files with 2 additions and 2 deletions

View File

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