Skip to content

Commit

Permalink
mode: show usage when no mode set
Browse files Browse the repository at this point in the history
A regression when INPUT_MODE support has been added.

Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
  • Loading branch information
matttbe committed Apr 18, 2024
1 parent 4e397b3 commit ec0c773
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ set_trace_on

if [ -z "${INPUT_MODE}" ]; then
INPUT_MODE="${1}"
shift
shift || true # none set
fi

# to be able to set an extra env var
Expand Down Expand Up @@ -1532,6 +1532,7 @@ usage() {


if [ -z "${INPUT_MODE}" ]; then
set +x
usage
exit 0
fi
Expand Down

0 comments on commit ec0c773

Please sign in to comment.