aboutsummaryrefslogtreecommitdiff
path: root/bin/td
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-01 15:19:57 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-01 15:19:57 +1200
commit1c36c6da62ede309b6058d8238d6fd7727bdb35d (patch)
tree4df7f997133fc16bb554e22aa3cd408ab2943573 /bin/td
parentAdd missing newline to td(1) error (diff)
downloaddotfiles-1c36c6da62ede309b6058d8238d6fd7727bdb35d.tar.gz
dotfiles-1c36c6da62ede309b6058d8238d6fd7727bdb35d.zip
Remove unused variable in td(1)
Diffstat (limited to 'bin/td')
-rwxr-xr-xbin/td3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/td b/bin/td
index a4367a21..53e3fbd6 100755
--- a/bin/td
+++ b/bin/td
@@ -1,10 +1,9 @@
#!/bin/sh
# Manage to-do files with just $EDITOR and git(1)
-# Specify the path to the file
+# Specify the path and file
dir=${TODO_DIR:-$HOME/Todo}
file=${1:-${TODO_NAME:-todo}}
-path="$dir"/"$file"
# If the directory doesn't exist, create it
[ -d "$dir" ] || mkdir -p -- "$dir" || exit