Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2020-12-01 06:19:41 +0300
committernachoparker <nacho@ownyourbits.com>2020-12-01 06:19:51 +0300
commit35c0d96d0b651b06c3ea57de64157abca7d835f2 (patch)
treedb860f1e07f5b7b12363c3d0b8ee56d8cb74e33c /bin
parent7afdc0fe8dffd71785782c8c6ac4edf8f3ada42a (diff)
nc-update-nc: ncp apps might not existv1.32.1
Signed-off-by: nachoparker <nacho@ownyourbits.com>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ncp-update-nc6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/ncp-update-nc b/bin/ncp-update-nc
index 25ed025d..fa86bbfc 100755
--- a/bin/ncp-update-nc
+++ b/bin/ncp-update-nc
@@ -134,7 +134,11 @@ cp -raT nextcloud-old/themes/ nextcloud/themes/
# copy old NCP apps
####################
-cp -r nextcloud-old/apps/{nextcloudpi,previewgenerator} /var/www/nextcloud/apps/
+for app in nextcloudpi previewgenerator; do
+ if [[ -d nextcloud-old/apps/"${app}" ]]; then
+ cp -r nextcloud-old/apps/"${app}" /var/www/nextcloud/apps/
+ fi
+done
#false # test point