Skip to content

Commit

Permalink
Fixing bc error in todo
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Epstein committed Aug 29, 2017
1 parent 566cf8c commit 608cab1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions todo/todo
Expand Up @@ -139,8 +139,9 @@ getTasks()
count="1"
IFS=$'\n' # make newlines the only separator
for task in $(cat ~/.todo/list.txt); do
if [ $count -lt 10 ]; then count="0$count"; fi
echo "$count). $task" >> ~/.todo/getTemp.txt
tempTask=$count
if [ $count -lt 10 ]; then tempTask="0$count"; fi
echo "$tempTask). $task" >> ~/.todo/getTemp.txt
count=$(( $count + 1 ))
done
cat ~/.todo/getTemp.txt | column -t -s ";"
Expand Down

0 comments on commit 608cab1

Please sign in to comment.