Skip to content

Commit

Permalink
[release-18.0] Update env.sh so that is does not error when running o…
Browse files Browse the repository at this point in the history
…n Mac (#15835) (#15914)

Signed-off-by: bddicken <bddicken@gmail.com>
Co-authored-by: vitess-bot[bot] <108069721+vitess-bot[bot]@users.noreply.github.com>
  • Loading branch information
vitess-bot[bot] committed May 10, 2024
1 parent 4eeb60d commit 51aafde
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/common/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ mkdir -p "${VTDATAROOT}/tmp"
alias mysql="command mysql --no-defaults -h 127.0.0.1 -P 15306"
alias vtctldclient="command vtctldclient --server localhost:15999"

# Make sure aliases are expanded in non-interactive shell
shopt -s expand_aliases
# If using bash, make sure aliases are expanded in non-interactive shell
if [[ -n ${BASH} ]]; then
shopt -s expand_aliases
fi

0 comments on commit 51aafde

Please sign in to comment.