From 9310487012dfacbc99f5144d00084a865709184e Mon Sep 17 00:00:00 2001 From: typebrook Date: Mon, 17 Feb 2020 09:32:05 +0800 Subject: update --- scripts/check_upstream | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/check_upstream') diff --git a/scripts/check_upstream b/scripts/check_upstream index 2c5fef0..02c3f87 100755 --- a/scripts/check_upstream +++ b/scripts/check_upstream @@ -15,11 +15,11 @@ then fi cd "$1" && \ -git pull my && \ git fetch origin && \ -if git rev-list "$head" | grep "$(git rev-parse origin/master)" > /dev/null +if ! git rev-list "$head" | grep "$(git rev-parse origin/master)" > /dev/null then - echo "New commit at" "$1" + [ $(git pull my) = 'Alrady up to date.' ] || \ + echo "New commit at" "$1" fi echo "$(date)" check "$1" >> "$SETTING_DIR/log" -- cgit v1.2.3-70-g09d2