Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ cf target -o "$INPUT_CF_ORG" -s "$INPUT_CF_SPACE"
# If they specified a full command, run it
if [[ -n "$INPUT_COMMAND" ]]; then
echo "Running command: $INPUT_COMMAND"
exec bash -c "$INPUT_COMMAND"
eval $INPUT_COMMAND
exit
fi

# If they specified a cf CLI subcommand, run it
if [[ -n "$INPUT_CF_COMMAND" ]]; then
echo "Running command: $INPUT_CF_COMMAND"
exec cf $INPUT_CF_COMMAND
eval cf $INPUT_CF_COMMAND
exit
fi

# Otherwise, assume they want to do a cf push.
Expand Down