Skip to content

Commit

Permalink
Use {} in the variable expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
cpina committed Jan 21, 2022
1 parent 084156b commit 483689a
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 483689a

Please sign in to comment.