Skip to content

Commit cb184d2

Browse files
committed
ncp-update-nc: dont keep notifying when there is nothing to upgrade
Signed-off-by: nachoparker <nacho@ownyourbits.com>
1 parent 311cd2b commit cb184d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/ncp-update-nc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ fi
6363

6464
echo "Current Nextcloud version $CURRENT"
6565
echo "Available Nextcloud version $VER"
66-
[[ "$NEED_UPDATE" == "true" ]] || { echo "Nothing to update"; exit; }
66+
[[ "$NEED_UPDATE" == "true" ]] || { echo "Nothing to update"; exit 1; } # we want `exit 1` so the autoupdate doesn't notify success in this case
6767

6868
# make sure that cron.php is not running and there are no pending jobs
6969
# https://github.com/nextcloud/server/issues/10949

0 commit comments

Comments
 (0)