Fixing bc error in todo
This commit is contained in:
parent
566cf8c810
commit
608cab1f3d
|
@ -139,8 +139,9 @@ getTasks()
|
||||||
count="1"
|
count="1"
|
||||||
IFS=$'\n' # make newlines the only separator
|
IFS=$'\n' # make newlines the only separator
|
||||||
for task in $(cat ~/.todo/list.txt); do
|
for task in $(cat ~/.todo/list.txt); do
|
||||||
if [ $count -lt 10 ]; then count="0$count"; fi
|
tempTask=$count
|
||||||
echo "$count). $task" >> ~/.todo/getTemp.txt
|
if [ $count -lt 10 ]; then tempTask="0$count"; fi
|
||||||
|
echo "$tempTask). $task" >> ~/.todo/getTemp.txt
|
||||||
count=$(( $count + 1 ))
|
count=$(( $count + 1 ))
|
||||||
done
|
done
|
||||||
cat ~/.todo/getTemp.txt | column -t -s ";"
|
cat ~/.todo/getTemp.txt | column -t -s ";"
|
||||||
|
|
Loading…
Reference in New Issue