Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit 0faf40b

Browse files
authored
Update entrypoint.sh
1 parent 81e2161 commit 0faf40b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

entrypoint.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,14 @@ fi
88

99
CMDOUT=$(eval $command)
1010

11+
ret=$?
12+
if [ $ret -ne 0 ]; then
13+
exit $ret
14+
fi
15+
1116
username=$(jq -n "$CMDOUT" | jq '.username')
1217
password=$(jq -n "$CMDOUT" | jq '.plain_text')
1318
hostname=$(jq -n "$CMDOUT" | jq '.database_branch.access_host_url')
1419
echo "username=$username" >> $GITHUB_OUTPUT
1520
echo "password=$password" >> $GITHUB_OUTPUT
16-
echo "hostname=$hostname" >> $GITHUB_OUTPUT
21+
echo "hostname=$hostname" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)