aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/td3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/td b/bin/td
index 1c8828d2..80542979 100755
--- a/bin/td
+++ b/bin/td
@@ -16,6 +16,9 @@ path=${TODO:-$HOME/Todo/todo.markdown}
file=${path##*/}
dir=${path%/*}
+# Check we've got the tools we need
+hash git || exit
+
# If the directory doesn't exist, create it
if [[ ! -d $dir ]] ; then
mkdir -p -- "$dir" || exit