Skip to content

Commit

Permalink
test-harness uses different grep than Geodesic default (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuru authored Jul 3, 2021
1 parent e814403 commit b2fe984
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ jobs:
fi
# Match lables like `terraform/0.12` or nothing (to prevent non-zero exit code)
OVERRIDE_VERSION=$(grep -Eo '(terraform/\d+\.\d+|)' <<<${LABELS} | cut -d/ -f2)
# Use [0-9] because \d is not standard part of egrep
OVERRIDE_VERSION=$(grep -Eo '(terraform/[0-9]+\.[0-9]+|)' <<<${LABELS} | cut -d/ -f2)
if [ -n "${OVERRIDE_VERSION}" ]; then
VERSION=${OVERRIDE_VERSION}
Expand Down Expand Up @@ -351,7 +352,8 @@ jobs:
fi
# Match lables like `terraform/0.12` or nothing (to prevent non-zero exit code)
OVERRIDE_VERSION=$(grep -Eo '(terraform/\d+\.\d+|)' <<<${LABELS} | cut -d/ -f2)
# Use [0-9] because \d is not standard part of egrep
OVERRIDE_VERSION=$(grep -Eo '(terraform/[0-9]+\.[0-9]+|)' <<<${LABELS} | cut -d/ -f2)
if [ -n "${OVERRIDE_VERSION}" ]; then
VERSION=${OVERRIDE_VERSION}
Expand Down

0 comments on commit b2fe984

Please sign in to comment.