From ba1d7255d070dd704a7afc842f9cd390d1c432bb Mon Sep 17 00:00:00 2001 From: Aleksander Baranowski Date: Sat, 17 Aug 2024 08:15:00 +0200 Subject: [PATCH] fix mixed indent + move do to same line as start of loop (#19373) --- docker-entrypoint.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 4590b56ce65..c111ad2b4ac 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -15,12 +15,11 @@ codegen="${cli}/target/openapi-generator-cli.jar" commands="config-help,generate,batch,help,list,meta,validate,version" if [ $# == 0 ]; then - echo "No command specified. Available commands:" - for i in $(echo $commands | sed "s/,/ /g") - do - echo " $i" - done - exit + echo "No command specified. Available commands:" + for i in $(echo $commands | sed "s/,/ /g"); do + echo " $i" + done + exit fi # if CLI jar exists, check $1 against completions available in the CLI