#!/bin/bash st-flash --reset write .build/keyboard.bin 0x8000000 if [ $? -ne 0 ] then st-flash --reset write .build/keyboard.bin 0x8000000 fi