diff --git a/entrypoint.sh b/entrypoint.sh index 94b37e9..62b60d3 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,17 +4,17 @@ set -e # if a command fails it stops the execution set -u # script fails if trying to access to an undefined variable echo "[+] Action start" -SOURCE_BEFORE_DIRECTORY="$1" -SOURCE_DIRECTORY="$2" -DESTINATION_GITHUB_USERNAME="$3" -DESTINATION_REPOSITORY_NAME="$4" -GITHUB_SERVER="$5" -USER_EMAIL="$6" -USER_NAME="$7" -DESTINATION_REPOSITORY_USERNAME="$8" -TARGET_BRANCH="$9" -COMMIT_MESSAGE="$10" -TARGET_DIRECTORY="$11" +SOURCE_BEFORE_DIRECTORY="${1}" +SOURCE_DIRECTORY="${2}" +DESTINATION_GITHUB_USERNAME="${3}" +DESTINATION_REPOSITORY_NAME="${4}" +GITHUB_SERVER="${5}" +USER_EMAIL="${6}" +USER_NAME="${7}" +DESTINATION_REPOSITORY_USERNAME="${8}" +TARGET_BRANCH="${9}" +COMMIT_MESSAGE="${10}" +TARGET_DIRECTORY="${11}" if [ -z "$DESTINATION_REPOSITORY_USERNAME" ] then