install.sh: improve symlink handling

This commit is contained in:
Thomas Farstrike
2025-11-14 17:18:01 +01:00
parent 37804909b5
commit e68ad892d4
+5 -2
View File
@@ -60,10 +60,13 @@ $mpremote fs cp main.py :/main.py
#$mpremote fs cp -r apps :/
#if false; then
$mpremote fs mkdir :/apps
$mpremote fs cp -r apps/com.micropythonos.* :/apps/
find apps/ -type l | while read symlink; do
find apps/ -maxdepth 1 -type l | while read symlink; do
echo "Handling symlink $symlink"
$mpremote fs mkdir :/{}
$mpremote fs mkdir :/"$symlink"
$mpremote fs cp -r "$symlink"/* :/"$symlink"/
done
#fi