Skip to content

Commit

Permalink
Allow to run a custom command when starting.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDoctor0 authored Oct 29, 2023
1 parent 0144f6c commit c7ee708
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ set -eu

printf "\n📦 Creating %s archive...\n" "$INPUT_TYPE"

if [ -n "$INPUT_COMMAND" ]; then
then
eval $INPUT_COMMAND
fi

if [ "$INPUT_DIRECTORY" != "." ]
then
cd "$INPUT_DIRECTORY"
Expand Down

0 comments on commit c7ee708

Please sign in to comment.