diff --git a/t.sh b/t.sh index d1cd177..9046f8f 100755 --- a/t.sh +++ b/t.sh @@ -875,7 +875,7 @@ function unfold() { function clearstatus() { local file file="$1" - [[ -e $file ]] && sed -i '/^COMPLETED:/d;/^STATUS:COMPLETED/d;/PERCENT-COMPLETE:/d;/^STATUS:IN-PROCESS:/d;/^STATUS:NEEDS-inform/d;/^$/d;/^REQUEST-STATUS:/d;' "$file" + [[ -e $file ]] && sed -i '/^COMPLETED:/d;/^STATUS:COMPLETED/d;/PERCENT-COMPLETE:/d;/^STATUS:IN-PROCESS:/d;/^STATUS:NEEDS-inform/d;/^$/d;/^REQUEST-STATUS:/d;/^STATUS:IN-PROCESS/d' "$file" } function markblocked() { # $1=uid $2=reason @@ -886,7 +886,7 @@ function markblocked() { # $1=uid $2=reason id=$(getid $uid) [[ $# -gt 1 ]] && ischild=1 || ischild=0 [[ $ischild -eq 1 ]] && noun=subtask || noun=task - # already in progress? + # already blocked? if [[ ${taskchecked[$id]} -eq 3 ]]; then if [[ ${taskblockreason[$id]} == "$reason" ]]; then error "$noun #${id} is already blocked"