From 483689a71cf9d3a0bbdd79d23e00646ef4124391 Mon Sep 17 00:00:00 2001 From: Carles Pina i Estany Date: Fri, 21 Jan 2022 17:42:11 +0100 Subject: [PATCH] Use {} in the variable expansion --- entrypoint.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) 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