diff --git a/entrypoint.sh b/entrypoint.sh index 62b60d3..e6d574c 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,10 +1,10 @@ -#!/bin/sh -l +#!/bin/sh +# shellcheck disable=SC3060 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}" diff --git a/validate.sh b/validate.sh index c732d71..0536b4c 100755 --- a/validate.sh +++ b/validate.sh @@ -1,11 +1,13 @@ -#!/bin/sh -l +#!/bin/sh +# shellcheck disable=SC2044 -set -euo pipefile +set -eu pipefile rc=0 for filename in $(find ./* -name '*.sh'); do - echo "Validating" + echo "Start to validating ${filename}" shellcheck "${filename}" || exit $? + echo "🚀Successfully Validated ${filename}" done -exit $? \ No newline at end of file +exit $rc \ No newline at end of file