Fixes script error in systemupdate.
This commit is contained in:
@@ -77,7 +77,7 @@ HEX_FILE="$OPENOCD_DIR/merged.hex"
|
|||||||
|
|
||||||
for IFACE in swd0 swd1; do
|
for IFACE in swd0 swd1; do
|
||||||
echo "[system_update] Flashing $IFACE..."
|
echo "[system_update] Flashing $IFACE..."
|
||||||
bash "$FLASH_SCRIPT" -i "$IFACE" -f "$HEX_FILE"
|
(cd "$OPENOCD_DIR" && bash "$FLASH_SCRIPT" -i "$IFACE" -f "$HEX_FILE")
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "[system_update] ERROR: flash $IFACE failed"
|
echo "[system_update] ERROR: flash $IFACE failed"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user