Skip to content

Commit 186adf7

Browse files
matthopejhunt
authored andcommitted
Handle the case where "text_file" may be set, but the target file may be empty or missing. (#47)
1 parent 5e50b45 commit 186adf7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

out

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ then
5353
fi
5454

5555
export TEXT_FILE_CONTENT=""
56+
[[ -n "${text_file}" && ! -f "${text_file}" ]] && text_file=""
5657
[[ -n "${text_file}" && -f "${text_file}" ]] && TEXT_FILE_CONTENT="$(cat "${text_file}")"
5758

5859
ATTACHMENTS_FILE_CONTENT=""

0 commit comments

Comments
 (0)