We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f1baa1 commit 5e2b3beCopy full SHA for 5e2b3be
1 file changed
scripts/install.sh
@@ -22,7 +22,7 @@ sleep 2
22
23
if [ ! -z "$appname" ]; then
24
echo "Installing one app: $appname"
25
- appdir="apps/$appname/"
+ appdir="apps/$appname"
26
target="apps/"
27
if [ ! -d "$appdir" ]; then
28
echo "$appdir doesn't exist so taking the builtin/"
@@ -36,7 +36,12 @@ if [ ! -z "$appname" ]; then
36
$mpremote mkdir "/apps"
37
#$mpremote mkdir "/builtin" # dont do this because it breaks the mount!
38
#$mpremote mkdir "/builtin/apps"
39
- $mpremote fs cp -r "$appdir" :/"$target"
+ 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
45
echo "start_app(\"/$appdir\")"
46
$mpremote
47
popd
0 commit comments