Skip to content

Commit f0b467b

Browse files
committed
nc-update-nc-apps-auto: only notify if there was update
1 parent 4b6572a commit f0b467b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

bin/ncp/CONFIG/nc-update-nc-apps-auto.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ ncc app:update --all -n
2828
echo "\$OUT" >> /var/log/ncp.log
2929
3030
APPS=\$( echo "\$OUT" | grep 'updated\$' | awk '{ print \$1 }')
31-
ncc notification:generate "$USER" "Apps updated" -l "\$APPS"
31+
[[ "\$APPS" != "" ]] && ncc notification:generate "$USER" "Apps updated" -l "\$APPS"
3232
EOF
3333
chmod 755 "$cronfile"
3434
echo "automatic app updates enabled"

changelog.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11

2-
[v1.10.3](https://github.com/nextcloud/nextcloudpi/commit/925cf31) (2019-03-18) nc-update-nc: fix case where imported cfg from non docker to docker
2+
[v1.10.4](https://github.com/nextcloud/nextcloudpi/commit/5675383) (2019-03-18) nc-update-nc-apps-auto: only notify if there was update
3+
4+
[v1.10.3](https://github.com/nextcloud/nextcloudpi/commit/4b6572a) (2019-03-18) nc-update-nc: fix case where imported cfg from non docker to docker
35

46
[v1.10.2 ](https://github.com/nextcloud/nextcloudpi/commit/ec66e40) (2019-03-16) freeDNS: fix hash
57

0 commit comments

Comments
 (0)