From 844ac3f003db495822d298ae18379a2220c1d723 Mon Sep 17 00:00:00 2001 From: typebrook Date: Wed, 22 Jan 2020 17:33:10 +0800 Subject: update --- scripts/gist | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/gist') diff --git a/scripts/gist b/scripts/gist index 853ab99..db316d6 100755 --- a/scripts/gist +++ b/scripts/gist @@ -104,7 +104,8 @@ _show_list() { local repo=$folder/$(echo $link | sed 's#.*/##') # if repo is not yet cloned, show green message "Sync Now" - cd $repo 2>/dev/null || extra="\e[32m[Sync Now]\e[0m" + # FIXME + [[ ! -d $repo ]] && extra="\e[32m[Sync Now]\e[0m" # if there are some changes in git index or working directory, show blue message "working" [[ -n $(git status --short) ]] 2>/dev/null && extra="\e[36m[working]\e[0m" # if there is a commit not yet push, show red message "ahead" -- cgit v1.2.3-70-g09d2