mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-30 04:23:24 +02:00
Add shell quoting and 'read -r' in example hooks (#3905)
This helps to avoid interpretation of escape sequences, such as backslash-escapes, in these values. Patch provided by @bughunter2 in https://github.com/GothenburgBitFactory/taskwarrior/issues/3899.
This commit is contained in:
parent
c594ecb58d
commit
cf6c0254dc
5 changed files with 12 additions and 12 deletions
|
@ -26,9 +26,9 @@ SHADOW_FILE=$(task _get rc.shadow.file)
|
|||
task $SHADOW_COMMAND rc.detection=off rc.gc=off rc.color=off rc.hooks=off > $SHADOW_FILE 2>/dev/null
|
||||
if [[ $? != 0 ]]
|
||||
then
|
||||
echo Could not create $SHADOW_FILE
|
||||
echo "Could not create $SHADOW_FILE"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo Shadow file $SHADOW_FILE updated.
|
||||
echo "Shadow file $SHADOW_FILE updated."
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue