]> gitweb.fluxo.info Git - scripts.git/commitdiff
ZTD: detect when inside a git project
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 1 Dec 2016 17:25:08 +0000 (15:25 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 1 Dec 2016 17:25:08 +0000 (15:25 -0200)
ztd

diff --git a/ztd b/ztd
index 29ea61f0d0fd1f54b5e2d2447a4d8c5f6b15f6c1..966178d6cf06df38585510432d3597725a61775c 100755 (executable)
--- a/ztd
+++ b/ztd
@@ -9,7 +9,7 @@ PROJECT="$1"
 # Try to get there
 if [ ! -z "$PROJECT" ]; then
   cd $PROJECT
-else
+else if [ ! -d '.git' ]; then
   cd
   remind ~/.reminders | grep -v '^No reminders.$'
   status