diff options
| author | Silvio Rhatto <rhatto@riseup.net> | 2017-05-14 13:58:28 -0300 |
|---|---|---|
| committer | Silvio Rhatto <rhatto@riseup.net> | 2017-05-14 13:58:28 -0300 |
| commit | 3c07f63390526c65e569648f2b3bc42465f9e135 (patch) | |
| tree | d774107729d7823aa648ef16ddb6a0d5bb661771 /ztd | |
| parent | fec935a411d77e40957e6bf08ea62d001413d12c (diff) | |
| download | scripts-3c07f63390526c65e569648f2b3bc42465f9e135.tar.gz scripts-3c07f63390526c65e569648f2b3bc42465f9e135.tar.bz2 | |
Replace 'ztd' script by 'status' and 'done'
Diffstat (limited to 'ztd')
| -rwxr-xr-x | ztd | 38 |
1 files changed, 0 insertions, 38 deletions
@@ -1,38 +0,0 @@ -#!/bin/bash -# -# ZTD extension to commit, push and fetch a project. -# - -# Parameters -PROJECT="$1" - -# Try to get there -if [ ! -z "$PROJECT" ]; then - cd $PROJECT &> /dev/null -elif ! git status &> /dev/null; then - cd - remind ~/.reminders | grep -v '^No reminders.$' - status - todo - postponed - - if [ ! -z "`ls -1 ~/load/`" ]; then - echo "Dangling files at ~/load:" - echo "" - ls -lh ~/load/ - fi - - exit -fi - -# Sync -if git status &> /dev/null; then - if which updates > /dev/null; then - updates - else - git commit -a -m "Updates $PROJECT" - git push - fi - - git fetch --all -fi |
