aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-12-01 15:25:08 -0200
committerSilvio Rhatto <rhatto@riseup.net>2016-12-01 15:25:08 -0200
commit7a64b316478e313bd0ea085ddf3566e3d78fb919 (patch)
tree56599e7741b82c2af6afc56a4fbdd1ff7b0034cf
parent6d854c6d738b77ce3e26914e6fb8eddab236dcea (diff)
downloadscripts-7a64b316478e313bd0ea085ddf3566e3d78fb919.tar.gz
scripts-7a64b316478e313bd0ea085ddf3566e3d78fb919.tar.bz2
ZTD: detect when inside a git project
-rwxr-xr-xztd2
1 files changed, 1 insertions, 1 deletions
diff --git a/ztd b/ztd
index 29ea61f..966178d 100755
--- 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