From 23ee814ce6bd895e174e6486429eb057fb90eeed Mon Sep 17 00:00:00 2001 From: Craig Perkins Date: Fri, 19 Apr 2024 14:58:07 -0400 Subject: [PATCH] Use -z Signed-off-by: Craig Perkins --- .github/actions/run-cypress-tests/action.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/actions/run-cypress-tests/action.yml b/.github/actions/run-cypress-tests/action.yml index 344c8937c..5a681dd61 100644 --- a/.github/actions/run-cypress-tests/action.yml +++ b/.github/actions/run-cypress-tests/action.yml @@ -59,10 +59,10 @@ runs: if: ${{ runner.os == 'Linux' }} run: | cd ./OpenSearch-Dashboards/plugins/security-dashboards-plugin - if [[ ${{ inputs.osd_base_path }} != '' ]]; then - yarn runIdp --basePath ${{ inputs.osd_base_path }} & - else + if [ -z "${{ inputs.osd_base_path }}" ]; then yarn runIdp & + else + yarn runIdp --basePath ${{ inputs.osd_base_path }} & fi shell: bash @@ -95,9 +95,9 @@ runs: - name: Run Cypress run : | yarn add cypress --save-dev - if [[ ${{ inputs.osd_base_path }} != '' ]]; then - eval ${{ inputs.yarn_command }} --basePath ${{ inputs.osd_base_path }} - else + if [ -z "${{ inputs.osd_base_path }}" ]; then eval ${{ inputs.yarn_command }} + else + eval ${{ inputs.yarn_command }} --basePath ${{ inputs.osd_base_path }} fi shell: bash