Skip to content

Commit

Permalink
Used the week variable. Fixed issue where creation date was listed in…
Browse files Browse the repository at this point in the history
… completed task list because of lazy greping.
  • Loading branch information
gr0undzer0 committed Oct 3, 2015
1 parent 26144cc commit 2c01c89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ gnudate() {

TODAY=$(gnudate +%s)
WEEK=604800
DAY=$((604800 / 7))
DAY=$(($WEEK / 7))
for i in $(eval echo "{$DAYS..0}")
do
DAYX=$(($TODAY - $DAY * $i))
Expand All @@ -59,7 +59,7 @@ case $OSTYPE in
DAYWORD=$(gnudate -d $DAYTITLE +%A)
;;
esac
DAYCONTENT=$(grep $DAYTITLE $DONE_FILE)
DAYCONTENT=$(grep "x $DAYTITLE" $DONE_FILE)

if [[ -z "$DAYCONTENT" && "$OPTION" != -o ]]
then
Expand Down

0 comments on commit 2c01c89

Please sign in to comment.