diff --git a/.github/workflows/code-hygiene.yml b/.github/workflows/code-hygiene.yml index cf5fc97cb119c..2c0181d0960d8 100644 --- a/.github/workflows/code-hygiene.yml +++ b/.github/workflows/code-hygiene.yml @@ -12,12 +12,12 @@ jobs: - name: Linelint uses: fernandrone/linelint@0.0.4 - shellcheck: - name: Shellcheck - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Run ShellCheck - uses: ludeeus/action-shellcheck@master - with: - ignore_paths: "*/gradlew" + shellcheck: + name: Shellcheck + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Run ShellCheck + uses: ludeeus/action-shellcheck@master + with: + ignore_paths: "*/gradlew" diff --git a/client/sniffer/src/test/resources/create_test_nodes_info.bash b/client/sniffer/src/test/resources/create_test_nodes_info.bash index 78e67562d815b..43c6c05bd7908 100644 --- a/client/sniffer/src/test/resources/create_test_nodes_info.bash +++ b/client/sniffer/src/test/resources/create_test_nodes_info.bash @@ -38,17 +38,18 @@ function do_version() { tar xf ../opensearch-min-${version}-linux-x64.tar.gz local http_port=9200 + local cluster_manager initial_cluster_manager_nodes data for node in ${nodes}; do mkdir ${node} cp -r opensearch-${version}/* ${node} - local cluster_manager=$([[ "$node" =~ ^m.* ]] && echo 'cluster_manager,' || echo '') + cluster_manager=$([[ "$node" =~ ^m.* ]] && echo 'cluster_manager,' || echo '') # 'cluster_manager' role is add in version 2.x and above, use 'master' role in 1.x cluster_manager=$([[ ! "$cluster_manager" == '' && ${version} =~ ^1\. ]] && echo 'master,' || echo ${cluster_manager}) local data=$([[ "$node" =~ ^d.* ]] && echo 'data,' || echo '') # m2 is always cluster_manager and data for these test just so we have a node like that data=$([[ "$node" == 'm2' ]] && echo 'data,' || echo ${data}) # setting name 'cluster.initial_cluster_manager_nodes' is add in version 2.x and above - local initial_cluster_manager_nodes=$([[ ${version} =~ ^1\. ]] && echo 'initial_master_nodes' || echo 'initial_cluster_manager_nodes') + initial_cluster_manager_nodes=$([[ ${version} =~ ^1\. ]] && echo 'initial_master_nodes' || echo 'initial_cluster_manager_nodes') local transport_port=$((http_port+100)) cat >> ${node}/config/opensearch.yml << __OPENSEARCH_YML