]> Repositories - Adafruit_Blinka-hackapet.git/blobdiff - python/upload_feather_huzzah_micropython_put.sh
Suppress errors from ampy mkdir where directory exists
[Adafruit_Blinka-hackapet.git] / python / upload_feather_huzzah_micropython_put.sh
index 3a6cb0e0b717e5c623de2fb6f7d543948b2345a7..0f201181279e777186a346e3ec5ca9f4871a1957 100755 (executable)
@@ -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