#!/bin/bash # first device connected idf.py -DROLE=SENDER build cp build/wellhub.bin /var/www/esp_ota ret_val=$? if (($ret_val != 0)); then exit fi