#!/bin/bash FILE=build/ if [ -d "$FILE" ];then rm -r build/ bin/ inc/ lib/ cmake -S . -B build/ else cmake -S . -B build/ fi cd $FILE make -j11 install /bin/test #st-flash write refOvenTest.bin 0x08000000 cd ..