Skip to content

Commit e68ad89

Browse files
install.sh: improve symlink handling
1 parent 3780490 commit e68ad89

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

scripts/install.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,13 @@ $mpremote fs cp main.py :/main.py
6060
#$mpremote fs cp -r apps :/
6161

6262
#if false; then
63+
$mpremote fs mkdir :/apps
6364
$mpremote fs cp -r apps/com.micropythonos.* :/apps/
64-
find apps/ -type l | while read symlink; do
65+
find apps/ -maxdepth 1 -type l | while read symlink; do
6566
echo "Handling symlink $symlink"
66-
$mpremote fs mkdir :/{}
67+
$mpremote fs mkdir :/"$symlink"
68+
$mpremote fs cp -r "$symlink"/* :/"$symlink"/
69+
6770
done
6871
#fi
6972

0 commit comments

Comments
 (0)