Skip to content

Commit

Permalink
bash v3 syntax for bash in MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean Utke committed Sep 25, 2024
1 parent d8508ab commit 17d4f96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e -u
# SPDX-FileCopyrightText: Bradley M. Bell <[email protected]>
# SPDX-FileContributor: 2023-24 Bradley M. Bell
# ---------------------------------------------------------------------------
if [[ ! -v build_type ]]
if [[ ! "${build_type+x}" ]]
then
echo 'usage: build_type=(debug or release)'
echo ' source bin/environment.sh'
Expand Down Expand Up @@ -48,7 +48,7 @@ EOF
rm ./environment.$$
#
# activate
if [[ -v VIRTUAL_ENV ]]
if [[ "${VIRTUAL_ENV+x}" ]]
then
if ! echo $VIRTUAL_ENV | grep "/build/$build_type\$" > /dev/null
then
Expand Down

0 comments on commit 17d4f96

Please sign in to comment.