Skip to content

Commit

Permalink
fix syntax to resolve || before |
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Jun 7, 2024
1 parent 4808e0b commit 991f066
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jobs:
- name: "Test psycopg2 name - default"
run: |
hatch env prune
PSYCOPG2_NAME=$(hatch run pip show psycopg2 || hatch run pip show psycopg2-binary | grep Name | cut -d " " -f 2)
PSYCOPG2_NAME=$((hatch run pip show psycopg2 || hatch run pip show psycopg2-binary) | grep Name | cut -d " " -f 2)
if [[ "$PSYCOPG2_NAME" != "$PSYCOPG2_EXPECTED_NAME" ]]; then
exit 1
Expand All @@ -131,7 +131,7 @@ jobs:
- name: "Test psycopg2 name - invalid override"
run: |
hatch env prune
PSYCOPG2_NAME=$(hatch run pip show psycopg2 || hatch run pip show psycopg2-binary | grep Name | cut -d " " -f 2)
PSYCOPG2_NAME=$((hatch run pip show psycopg2 || hatch run pip show psycopg2-binary) | grep Name | cut -d " " -f 2)
if [[ "$PSYCOPG2_NAME" != "$PSYCOPG2_EXPECTED_NAME" ]]; then
exit 1
Expand All @@ -143,7 +143,7 @@ jobs:
- name: "Test psycopg2 name - override"
run: |
hatch env prune
PSYCOPG2_NAME=$(hatch run pip show psycopg2 || hatch run pip show psycopg2-binary | grep Name | cut -d " " -f 2)
PSYCOPG2_NAME=$((hatch run pip show psycopg2 || hatch run pip show psycopg2-binary) | grep Name | cut -d " " -f 2)
if [[ "$PSYCOPG2_NAME" != "$PSYCOPG2_EXPECTED_NAME" ]]; then
exit 1
Expand All @@ -162,7 +162,7 @@ jobs:
hatch run pip install psycopg2==$PSYCOPG2_VERSION
# this is the end of the work around
PSYCOPG2_NAME=$(hatch run pip show psycopg2 || hatch run pip show psycopg2-binary | grep Name | cut -d " " -f 2)
PSYCOPG2_NAME=$((hatch run pip show psycopg2 || hatch run pip show psycopg2-binary) | grep Name | cut -d " " -f 2)
if [[ "$PSYCOPG2_NAME" != "$PSYCOPG2_EXPECTED_NAME" ]]; then
exit 1
Expand Down

0 comments on commit 991f066

Please sign in to comment.