From 5e2b3be78b592e426fc0341806ff18040ad1e0df Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Wed, 24 Dec 2025 15:20:11 +0100 Subject: [PATCH] install: add symlink handling for single apps --- scripts/install.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index d86f283e..17af080a 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -22,7 +22,7 @@ sleep 2 if [ ! -z "$appname" ]; then echo "Installing one app: $appname" - appdir="apps/$appname/" + appdir="apps/$appname" target="apps/" if [ ! -d "$appdir" ]; then echo "$appdir doesn't exist so taking the builtin/" @@ -36,7 +36,12 @@ if [ ! -z "$appname" ]; then $mpremote mkdir "/apps" #$mpremote mkdir "/builtin" # dont do this because it breaks the mount! #$mpremote mkdir "/builtin/apps" - $mpremote fs cp -r "$appdir" :/"$target" + if test -L "$appdir"; then + $mpremote fs mkdir :/"$appdir" + $mpremote fs cp -r "$appdir"/* :/"$appdir"/ + else + $mpremote fs cp -r "$appdir" :/"$target" + fi echo "start_app(\"/$appdir\")" $mpremote popd