aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-02-05 20:31:41 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-02-05 20:31:41 +1300
commit591576608d89d6426809adbaf581e3153f401873 (patch)
tree80a568dc276de48b9569c1eec512f9b7323804f5
parentMerge branch 'feature/vim-php' into develop (diff)
parentSuppress error messages in td(1df) (diff)
downloaddotfiles-591576608d89d6426809adbaf581e3153f401873.tar.gz
dotfiles-591576608d89d6426809adbaf581e3153f401873.zip
Merge branch 'feature/td-quiet' into develop
* feature/td-quiet: Suppress error messages in td(1df)
-rw-r--r--bin/td.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/td.sh b/bin/td.sh
index eaae1fd6..fb5610c5 100644
--- a/bin/td.sh
+++ b/bin/td.sh
@@ -15,7 +15,7 @@ if ! command -v isgr >/dev/null 2>&1 ; then
printf >&2 'isgr: command not found\n'
exit 1
fi
-isgr || git init || exit
+isgr || git init --quiet || exit
# If the to-do file doesn't exist yet, create it
[ -e "$file" ] || touch -- "$file" || exit
@@ -27,5 +27,5 @@ isgr || git init || exit
git add -- "$file"
# If there are changes to commit, commit them
-git diff-index --quiet HEAD ||
+git diff-index --quiet HEAD 2>/dev/null ||
git commit --message 'Changed by td(1df)' --quiet