Skip to content

Commit

Permalink
Update env.sh so that is does not error when running on Mac (#15835)
Browse files Browse the repository at this point in the history
Signed-off-by: bddicken <[email protected]>
  • Loading branch information
bddicken authored May 10, 2024
1 parent 0353ad4 commit a49b8c8
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 a49b8c8

Please sign in to comment.