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/ncp
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2019-03-19 04:59:18 +0300
committernachoparker <nacho@ownyourbits.com>2019-03-19 04:59:50 +0300
commitf0b467ba9bd9ca7517e190cbe01b8af75ec57c69 (patch)
tree778e2cc60752f30572d305f5d3fd1b9a89c954f9 /bin/ncp
parent4b6572a113cbf44d4613bea79dcd2f74777a7221 (diff)
nc-update-nc-apps-auto: only notify if there was updatev1.10.4
Diffstat (limited to 'bin/ncp')
-rw-r--r--bin/ncp/CONFIG/nc-update-nc-apps-auto.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ncp/CONFIG/nc-update-nc-apps-auto.sh b/bin/ncp/CONFIG/nc-update-nc-apps-auto.sh
index 0097e8dd..a4ba286d 100644
--- a/bin/ncp/CONFIG/nc-update-nc-apps-auto.sh
+++ b/bin/ncp/CONFIG/nc-update-nc-apps-auto.sh
@@ -28,7 +28,7 @@ ncc app:update --all -n
echo "\$OUT" >> /var/log/ncp.log
APPS=\$( echo "\$OUT" | grep 'updated\$' | awk '{ print \$1 }')
-ncc notification:generate "$USER" "Apps updated" -l "\$APPS"
+[[ "\$APPS" != "" ]] && ncc notification:generate "$USER" "Apps updated" -l "\$APPS"
EOF
chmod 755 "$cronfile"
echo "automatic app updates enabled"