Skip to content

Commit 2deeb91

Browse files
Use { cmd1; cmd2; } to avoid repeating output redirection
1 parent ebc0b9e commit 2deeb91

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

dockerhub/entrypoint.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ echo "running entrypoint command(s)"
2121

2222
response=$(bash -c " ${INPUT_COMMAND}")
2323

24-
echo "response<<EOF" >> "${GITHUB_OUTPUT}"
25-
echo "$response" >> "${GITHUB_OUTPUT}"
26-
echo "EOF" >> "${GITHUB_OUTPUT}"
24+
{
25+
echo "response<<EOF";
26+
echo "$response";
27+
echo "EOF";
28+
} >> "${GITHUB_OUTPUT}"

0 commit comments

Comments
 (0)