mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-05 14:07:21 +02:00
Update hooks to use read -r
and printf
This portably avoids any interpretation of backslash escapes by the shell.
This commit is contained in:
parent
97058dad79
commit
68cf122cea
24 changed files with 50 additions and 49 deletions
|
@ -6,13 +6,13 @@
|
|||
# Input:
|
||||
# - line of JSON for the original task
|
||||
# - line of JSON for the modified task, the diff being the modification
|
||||
read original_task
|
||||
read modified_task
|
||||
read -r original_task
|
||||
read -r modified_task
|
||||
|
||||
# Output:
|
||||
# - JSON, modified or unmodified.
|
||||
# - Optional feedback/error.
|
||||
echo $original_task
|
||||
printf "%s\n" "$original_task"
|
||||
|
||||
# Status:
|
||||
# - 0: JSON accepted, non-JSON is feedback.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue