#!/bin/bash set -e if [ -z "$1" ] then echo "specify which directory to build and flash" else ls cd $1 bash ./build.sh fi