Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ tests/trash\ directory.*
done.txt
report.txt
todo.txt
.vscode
3 changes: 3 additions & 0 deletions tests/t8010-listaddons.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ chmod -x .todo.actions.d/foo
# may still grant execution rights. In this case, we skip the test.
if [ -x .todo.actions.d/foo ]; then
SKIP_TESTS="${SKIP_TESTS}${SKIP_TESTS+ }t8010.4"
# foo is effectively ignored so just straight out delete it.
rm .todo.actions.d/foo
fi
test_todo_session 'nonexecutable action' <<EOF
>>> todo.sh listaddons
Expand Down Expand Up @@ -72,6 +74,7 @@ chmod -x .todo.actions.d/norris/norris
# may still grant execution rights. In this case, we skip the test.
if [ -x .todo.actions.d/norris/norris ]; then
SKIP_TESTS="${SKIP_TESTS}${SKIP_TESTS+ }t8010.8"
rm .todo.actions.d/norris/norris
fi
test_todo_session 'nonexecutable action in subfolder' <<EOF
>>> todo.sh listaddons
Expand Down
3 changes: 2 additions & 1 deletion todo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,8 @@ replaceOrPrepend()

if [[ -z "$1" && $TODOTXT_FORCE = 0 ]]; then
echo -n "$querytext"
read -r -i "$todo" -e input
todo_removed_prio=$(echo $todo | sed -e "s/([A-Z]) *//g")
read -r -i "$todo_removed_prio" -e input
else
input=$*
fi
Expand Down