Fix: prevent unmatched quote (#3726)

This commit is contained in:
Bryan Bugyi 2018-03-16 06:16:16 -04:00
parent fa282d574d
commit 18146e2fbc

View File

@ -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