From 18146e2fbc9e40669941c5f572ff58a50321ef93 Mon Sep 17 00:00:00 2001 From: Bryan Bugyi Date: Fri, 16 Mar 2018 06:16:16 -0400 Subject: [PATCH] Fix: prevent unmatched quote (#3726) --- misc/userscripts/taskadd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/userscripts/taskadd b/misc/userscripts/taskadd index 59095e1bc..36e1c2ced 100755 --- a/misc/userscripts/taskadd +++ b/misc/userscripts/taskadd @@ -28,7 +28,7 @@ if msg="$(task add "$title" "$*" 2>&1)"; then # annotate the new task with the url, send the output back to the browser task +LATEST annotate "$QUTE_URL" - echo "message-info '$msg'" | head -n 1 >> "$QUTE_FIFO" + echo "message-info '$(echo "$msg" | head -n 1)'" >> "$QUTE_FIFO" else - echo "message-error '$msg'" | head -n 1 >> "$QUTE_FIFO" + echo "message-error '$(echo "$msg" | head -n 1)'" >> "$QUTE_FIFO" fi