]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Fixed issue with directories being incorrectly filtered
authorCefn Hoile <github.com@cefn.com>
Tue, 20 Feb 2018 17:58:25 +0000 (17:58 +0000)
committerCefn Hoile <github.com@cefn.com>
Tue, 20 Feb 2018 17:58:25 +0000 (17:58 +0000)
python/upload_feather_huzzah_circuitpython_put.sh

index f7a3bb02d51929eb88eea5562d527ac8ea3100d5..fba0d4a5ead3d92b2aeb5e322ca2ae4a82c17213 100755 (executable)
@@ -3,7 +3,7 @@ PORT=/dev/ttyUSB0
 
 # create only relevant directories on the board
 find testing -type d | \
-        grep -v -E "(.(git|idea|vscode)|__pycache__)" | \
+        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 --exists-okay  {}"