Skip to content

Commit dee953b

Browse files
committed
Check for non-zero string length instead of value
1 parent 0b8eadc commit dee953b

File tree

41 files changed

+40
-49
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+40
-49
lines changed

changelog-entries/680.md

Lines changed: 1 addition & 1 deletion

channel-transport-reaction/chemical-fenics/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e -u
44
. ../../tools/log.sh
55
exec > >(tee --append "$LOGFILE") 2>&1
66

7-
if [ "${PRECICE_TUTORIALS_VENV:-true}" = true ]
7+
if [ -z "${PRECICE_TUTORIALS_NO_VENV:-}" ]
88
then
99
python3 -m venv --system-site-package .venv
1010
. .venv/bin/activate

channel-transport-reaction/fluid-fenics/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e -u
44
. ../../tools/log.sh
55
exec > >(tee --append "$LOGFILE") 2>&1
66

7-
if [ "${PRECICE_TUTORIALS_VENV:-true}" = true ]
7+
if [ -z "${PRECICE_TUTORIALS_NO_VENV:-}" ]
88
then
99
python3 -m venv --system-site-package .venv
1010
. .venv/bin/activate

channel-transport/fluid-nutils/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e -u
44
. ../../tools/log.sh
55
exec > >(tee --append "$LOGFILE") 2>&1
66

7-
if [ "${PRECICE_TUTORIALS_VENV:-true}" = true ]
7+
if [ -z "${PRECICE_TUTORIALS_NO_VENV:-}" ]
88
then
99
python3 -m venv .venv
1010
. .venv/bin/activate

channel-transport/transport-nutils/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e -u
44
. ../../tools/log.sh
55
exec > >(tee --append "$LOGFILE") 2>&1
66

7-
if [ "${PRECICE_TUTORIALS_VENV:-true}" = true ]
7+
if [ -z "${PRECICE_TUTORIALS_NO_VENV:-}" ]
88
then
99
python3 -m venv .venv
1010
. .venv/bin/activate

elastic-tube-1d/fluid-python/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e -u
44
. ../../tools/log.sh
55
exec > >(tee --append "$LOGFILE") 2>&1
66

7-
if [ "${PRECICE_TUTORIALS_VENV:-true}" = true ]
7+
if [ -z "${PRECICE_TUTORIALS_NO_VENV:-}" ]
88
then
99
python3 -m venv .venv
1010
. .venv/bin/activate

elastic-tube-1d/solid-python/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e -u
44
. ../../tools/log.sh
55
exec > >(tee --append "$LOGFILE") 2>&1
66

7-
if [ "${PRECICE_TUTORIALS_VENV:-true}" = true ]
7+
if [ -z "${PRECICE_TUTORIALS_NO_VENV:-}" ]
88
then
99
python3 -m venv .venv
1010
. .venv/bin/activate

elastic-tube-3d/solid-fenics/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e -u
44
. ../../tools/log.sh
55
exec > >(tee --append "$LOGFILE") 2>&1
66

7-
if [ "${PRECICE_TUTORIALS_VENV:-true}" = true ]
7+
if [ -z "${PRECICE_TUTORIALS_NO_VENV:-}" ]
88
then
99
python3 -m venv --system-site-package .venv
1010
. .venv/bin/activate

flow-around-controlled-moving-cylinder/controller-fmi/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if [ ! -f PIDcontroller.fmu ]; then
1515
cd ../../
1616
fi
1717

18-
if [ "${PRECICE_TUTORIALS_VENV:-true}" = true ]
18+
if [ -z "${PRECICE_TUTORIALS_NO_VENV:-}" ]
1919
then
2020
python3 -m venv .venv
2121
. .venv/bin/activate

flow-around-controlled-moving-cylinder/solid-python/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e -u
44
. ../../tools/log.sh
55
exec > >(tee --append "$LOGFILE") 2>&1
66

7-
if [ "${PRECICE_TUTORIALS_VENV:-true}" = true ]
7+
if [ -z "${PRECICE_TUTORIALS_NO_VENV:-}" ]
88
then
99
python3 -m venv .venv
1010
. .venv/bin/activate

0 commit comments

Comments
 (0)