From 09e571b965b9e493fdc54413fac12b43b9119c23 Mon Sep 17 00:00:00 2001 From: typebrook Date: Mon, 10 Jun 2019 09:15:40 +0800 Subject: update --- scripts/check_upstream.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts/check_upstream.sh') diff --git a/scripts/check_upstream.sh b/scripts/check_upstream.sh index 77e8c34..2212df3 100755 --- a/scripts/check_upstream.sh +++ b/scripts/check_upstream.sh @@ -1,5 +1,6 @@ -# check git repo $1 if upstream branch -# origin/master is ahead of local branch $2(default to dev) +# This script is for repo forked from others +# check $1(repo) if upstream branch origin/master is +# ahead of local branch $2(default to dev) check_upstream() { if [ ! -d $1 ]; then @@ -21,6 +22,5 @@ check_upstream() { echo "New commit at" $1 fi - cd ~/git/settings - echo $(date) check $1 >> ./log + echo $(date) check $1 >> ~/git/settings/log } -- cgit v1.2.3-70-g09d2