Skip to content

Commit

Permalink
Add check that ${TARGETS} variable exists
Browse files Browse the repository at this point in the history
  • Loading branch information
judaew committed Oct 25, 2021
1 parent 242a1fd commit 2a03fce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ parse_args() {
}

luacheck_init() {
: "${TARGETS?No targets to check. Nothing to do.}"
: "${GITHUB_WORKSPACE?GITHUB_WORKSPACE has to be set. Did you use the actions/checkout action?}"
pushd "${GITHUB_WORKSPACE}"

local opts
opts=$(parse_args ${@} || exit 1)
Expand Down

0 comments on commit 2a03fce

Please sign in to comment.