File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ sleep 2
2222
2323if [ ! -z " $appname " ]; then
2424 echo " Installing one app: $appname "
25- appdir=" apps/$appname / "
25+ appdir=" apps/$appname "
2626 target=" apps/"
2727 if [ ! -d " $appdir " ]; then
2828 echo " $appdir doesn't exist so taking the builtin/"
@@ -36,7 +36,12 @@ if [ ! -z "$appname" ]; then
3636 $mpremote mkdir " /apps"
3737 # $mpremote mkdir "/builtin" # dont do this because it breaks the mount!
3838 # $mpremote mkdir "/builtin/apps"
39- $mpremote fs cp -r " $appdir " :/" $target "
39+ if test -L " $appdir " ; then
40+ $mpremote fs mkdir :/" $appdir "
41+ $mpremote fs cp -r " $appdir " /* :/" $appdir " /
42+ else
43+ $mpremote fs cp -r " $appdir " :/" $target "
44+ fi
4045 echo " start_app(\" /$appdir \" )"
4146 $mpremote
4247 popd
You can’t perform that action at this time.
0 commit comments