]> Repositories - Adafruit_Blinka-hackapet.git/blobdiff - python/upload_feather_huzzah_circuitpython_put.sh
Suppress errors from ampy mkdir where directory exists
[Adafruit_Blinka-hackapet.git] / python / upload_feather_huzzah_circuitpython_put.sh
index 5a4b91ab9d7af293bec327d6db0e01ced2f294bb..100ab1516f598635957d1444bdd1af57cad916df 100755 (executable)
@@ -5,7 +5,7 @@ PORT=/dev/ttyUSB0
 find testing -type d | \
         grep -v -E "(.(git|idea|vscode)|__pycache__)" | \
         grep -v -E '^testing/implementation/micropython*' | \
 find testing -type d | \
         grep -v -E "(.(git|idea|vscode)|__pycache__)" | \
         grep -v -E '^testing/implementation/micropython*' | \
-        xargs -n1 -I {} sh -c "echo Creating directory {} ...; ampy --port ${PORT} mkdir {}"
+        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
 
 # put top-level modules in place
 for NAME in agnostic unittest