Skip to content

Commit

Permalink
dont raise exit 1
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <[email protected]>
  • Loading branch information
timvaillancourt committed Jul 9, 2024
1 parent 9194d25 commit 98e1b29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/common/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ done;

# vtctldclient has a separate alias setup below
for binary in vttablet vtgate vtctld mysqlctl vtorc vtctl; do
$binary --version | grep -q "19\.[0-9]*\.[0-9]*"
if [[ "$?" -eq "0" ]]; then
BINARY_VERSION=$($binary --version | grep -o "Version: 1[0-9]\.[0-9]*\.[0-9]*" | awk '{print $2}')
if [[ "${BINARY_VERSION}" =~ 19.0.[0-9]* ]]; then
alias $binary="$binary --config-file-not-found-handling=ignore"
fi
done;
Expand Down

0 comments on commit 98e1b29

Please sign in to comment.