mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-14 14:50:16 +00:00
fix(ignore): Make update check less verbose (#26774)
This commit is contained in:
@@ -2,9 +2,10 @@
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
if [ "$1" != "force" ]; then
|
||||
git fetch
|
||||
NEW_COMMITS="$(git rev-list HEAD...origin/"$(git branch --show-current)" --count)"
|
||||
if [ "$NEW_COMMITS" -gt "0" ]; then
|
||||
echo "Checking for updates..."
|
||||
git fetch -q
|
||||
NEW_COMMITS="$(git rev-list HEAD...@{upstream} --count)"
|
||||
if [ "$NEW_COMMITS" -gt 0 ]; then
|
||||
echo "Update available!"
|
||||
else
|
||||
echo "No update available. Use '$0 force' to skip the check."
|
||||
|
||||
Reference in New Issue
Block a user