From e075c7e34662d30de6224eefdd620e164193447b Mon Sep 17 00:00:00 2001 From: typebrook Date: Tue, 21 Jan 2020 16:52:03 +0800 Subject: update --- scripts/gist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/gist') diff --git a/scripts/gist b/scripts/gist index d14376e..fdac18e 100755 --- a/scripts/gist +++ b/scripts/gist @@ -128,7 +128,7 @@ _update() { curl -s -H "$auth_header" $github_api/$route |\ _parse_response | nl -s' ' | sed -E "s/^ */$mark/" > $list_file && \ _show_list $list_file - (_sync_repos $1 > /dev/null 2>&1 &) + [[ $auto_sync ]] && (_sync_repos $1 > /dev/null 2>&1 &) } # TODO check if a user create a very first gist -- cgit v1.2.3-70-g09d2