From 19ac586cd8ed076c1b10e9bd9aee2af9b8e1da3a Mon Sep 17 00:00:00 2001 From: Michael Both Date: Thu, 7 Mar 2019 22:50:21 +0100 Subject: [PATCH] Fix export missing and yet another double quote syntax --- bin/out | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/out b/bin/out index 3e0a931..ff6b96e 100755 --- a/bin/out +++ b/bin/out @@ -58,7 +58,7 @@ DATA_FILE_CONTENT="" if [[ "$always_notify" == "true" || -n "$TEXT_FILE_CONTENT" || -z "$text_file" || -n "$DATA_FILE_CONTENT" ]] then - TEXT_FILE_CONTENT="${TEXT_FILE_CONTENT:-_(text_file not provided)_}" + export TEXT_FILE_CONTENT="${TEXT_FILE_CONTENT:-_(text_file not provided)_}" text=$(echo -n "${text}" | envsubst) [[ -z "${text}" ]] && text="_(missing notification text)_" @@ -70,7 +70,7 @@ then [ -n "${formatted_body}" ] && formatted_body="${prefix}: ${formatted_body}" fi - text="$(echo -n "${text}" | jq -R -s .)" + text=$(echo -n "${text}" | jq -R -s .) [ -n "${formatted_body}" ] && formatted_body="$(echo -n "${formatted_body}" | jq -R -s .)" [[ "${token}" != "null" ]] && username="$(echo "$token" | envsubst | jq -R -s .)"