From 608cab1f3d6194453672d970407a8643938b1407 Mon Sep 17 00:00:00 2001 From: Alex Epstein Date: Tue, 29 Aug 2017 04:17:26 -0400 Subject: [PATCH] Fixing bc error in todo --- todo/todo | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/todo/todo b/todo/todo index 464ed02f..64e38afe 100755 --- a/todo/todo +++ b/todo/todo @@ -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 ";"