Skip to content

Commit 6638074

Browse files
committed
Switch to test -v option
1 parent 67aa6ab commit 6638074

File tree

40 files changed

+42
-42
lines changed

40 files changed

+42
-42
lines changed

changelog-entries/680.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
- Added the `PRECICE_TUTORIALS_NO_VENV` environment variable to skip the setup of a Python venv in the run.sh scripts of Python-related tutorials [#680](https://github.com/precice/tutorials/pull/680). Use as `PRECICE_TUTORIALS_NO_VENV=true`.
1+
- Added the `PRECICE_TUTORIALS_NO_VENV` environment variable to skip the setup of a Python venv in the run.sh scripts of Python-related tutorials [#680](https://github.com/precice/tutorials/pull/680). Use as `set PRECICE_TUTORIALS_NO_VENV && ./run.sh`.

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 [ -z "${PRECICE_TUTORIALS_NO_VENV:-}" ]
7+
if [ -v 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 [ -z "${PRECICE_TUTORIALS_NO_VENV:-}" ]
7+
if [ -v 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 [ -z "${PRECICE_TUTORIALS_NO_VENV:-}" ]
7+
if [ -v 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 [ -z "${PRECICE_TUTORIALS_NO_VENV:-}" ]
7+
if [ -v 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 [ -z "${PRECICE_TUTORIALS_NO_VENV:-}" ]
7+
if [ -v 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 [ -z "${PRECICE_TUTORIALS_NO_VENV:-}" ]
7+
if [ -v 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 [ -z "${PRECICE_TUTORIALS_NO_VENV:-}" ]
7+
if [ -v 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 [ -z "${PRECICE_TUTORIALS_NO_VENV:-}" ]
18+
if [ -v 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 [ -z "${PRECICE_TUTORIALS_NO_VENV:-}" ]
7+
if [ -v PRECICE_TUTORIALS_NO_VENV ]
88
then
99
python3 -m venv .venv
1010
. .venv/bin/activate

0 commit comments

Comments
 (0)