Skip to content
This repository has been archived by the owner on Dec 22, 2022. It is now read-only.

Commit

Permalink
bug in delete and done fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaspi committed Feb 5, 2022
1 parent e405549 commit a1359cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ switch $cmd
echo No such hash exists
end
else if test -n $argv[2]
set -x num (grep -n $argv[2..-1] ~/.tasks/data/Tdo.csv | head -n 1 | cut -d ":" -f 1)
set -x num (grep -n "$argv[2..-1]" ~/.tasks/data/Tdo.csv | head -n 1 | cut -d ":" -f 1)
if test -n "$num"
sed "$num !d" ~/.tasks/data/Tdo.csv
echo "Do you want to delete this?"
Expand Down Expand Up @@ -90,7 +90,7 @@ switch $cmd
echo "No such hash exists"
end
else if test -n $argv[2]
set -x num (grep -n $argv[2..-1] ~/.tasks/data/Tdo.csv | head -n 1 | cut -d ":" -f 1)
set -x num (grep -n "$argv[2..-1]" ~/.tasks/data/Tdo.csv | head -n 1 | cut -d ":" -f 1)
if test -n "$num"
sed "$num !d" ~/.tasks/data/Tdo.csv
echo "Do you want to move this to Done list?"
Expand Down

0 comments on commit a1359cf

Please sign in to comment.