Skip to content

Commit

Permalink
Use -z
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks committed Apr 19, 2024
1 parent 30ae872 commit 23ee814
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/actions/run-cypress-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

0 comments on commit 23ee814

Please sign in to comment.