Skip to content

Commit 6e781ea

Browse files
authored
fix(ignore): Make update check less verbose (#26774)
1 parent 325199d commit 6e781ea

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

update.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
cd "$(dirname "$0")"
33

44
if [ "$1" != "force" ]; then
5-
git fetch
6-
NEW_COMMITS="$(git rev-list HEAD...origin/"$(git branch --show-current)" --count)"
7-
if [ "$NEW_COMMITS" -gt "0" ]; then
5+
echo "Checking for updates..."
6+
git fetch -q
7+
NEW_COMMITS="$(git rev-list HEAD...@{upstream} --count)"
8+
if [ "$NEW_COMMITS" -gt 0 ]; then
89
echo "Update available!"
910
else
1011
echo "No update available. Use '$0 force' to skip the check."

0 commit comments

Comments
 (0)