From 86b4377edcaa2605c990f468b1c59654518d4058 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 15 Mar 2017 13:04:31 -0300 Subject: ZTD: better repository detection --- ztd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ztd b/ztd index 52ac5fe..1961064 100755 --- a/ztd +++ b/ztd @@ -9,7 +9,7 @@ PROJECT="$1" # Try to get there if [ ! -z "$PROJECT" ]; then cd $PROJECT -elif [ ! -d '.git' ]; then +elif ! git status &> /dev/null; then cd remind ~/.reminders | grep -v '^No reminders.$' status @@ -19,7 +19,7 @@ elif [ ! -d '.git' ]; then fi # Sync -if [ -d '.git' ]; then +if git status &> /dev/null; then if which updates > /dev/null; then updates else -- cgit v1.2.3