diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-03-15 13:04:31 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-03-15 13:04:31 -0300 |
commit | 86b4377edcaa2605c990f468b1c59654518d4058 (patch) | |
tree | a31ea406bbdb6e6d1f361dfd03043c70c0c583c8 | |
parent | bb446e9030b1a5404868ff0cff2af0b6da9d29a2 (diff) | |
download | scripts-86b4377edcaa2605c990f468b1c59654518d4058.tar.gz scripts-86b4377edcaa2605c990f468b1c59654518d4058.tar.bz2 |
ZTD: better repository detection
-rwxr-xr-x | ztd | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |