X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/f15a0431b5c4185424541d41e5bd843838bf6efd..d9dcc0b0776b0ce772a3f44b74ff2315d7be43f7:/python/upload_feather_huzzah_micropython_put.sh diff --git a/python/upload_feather_huzzah_micropython_put.sh b/python/upload_feather_huzzah_micropython_put.sh index 3a6cb0e..0f20118 100755 --- a/python/upload_feather_huzzah_micropython_put.sh +++ b/python/upload_feather_huzzah_micropython_put.sh @@ -2,7 +2,9 @@ PORT=/dev/ttyUSB0 # filter directories, and create relevant ones on the board -find . -mindepth 1 -type d | grep -v -E "(.(git|idea|vscode)|__pycache__)" | xargs -n1 ampy --port ${PORT} mkdir +find testing -type d | \ + grep -v -E "(.(git|idea|vscode)|__pycache__)" | \ + xargs -n1 -I {} sh -c "echo Creating directory {} ...; ampy --port ${PORT} mkdir --exists-okay {}" # put top-level modules in place for NAME in agnostic unittest