diff --git a/Allwmake b/Allwmake index c523251625..c2af53bf4b 100755 --- a/Allwmake +++ b/Allwmake @@ -1,6 +1,7 @@ #!/bin/sh # Run from OPENFOAM top-level directory only -cd ${0%/*} && wmakeCheckPwd "$WM_PROJECT_DIR" 2>/dev/null || { +cd "${0%/*}" || exit +wmakeCheckPwd "$WM_PROJECT_DIR" 2>/dev/null || { echo "Error (${0##*/}) : not located in \$WM_PROJECT_DIR" echo " Check your OpenFOAM environment and installation" exit 1 diff --git a/applications/Allwmake b/applications/Allwmake index dc3dabd798..0322225438 100755 --- a/applications/Allwmake +++ b/applications/Allwmake @@ -1,6 +1,7 @@ #!/bin/sh # Run from OPENFOAM applications/ directory only -cd ${0%/*} && wmakeCheckPwd "$WM_PROJECT_DIR/applications" 2>/dev/null || { +cd "${0%/*}" || exit +wmakeCheckPwd "$WM_PROJECT_DIR/applications" 2>/dev/null || { echo "Error (${0##*/}) : not located in \$WM_PROJECT_DIR/applications" echo " Check your OpenFOAM environment and installation" exit 1 diff --git a/applications/solvers/DNS/dnsFoam/Allwmake b/applications/solvers/DNS/dnsFoam/Allwmake index a066af9554..c55855fb89 100755 --- a/applications/solvers/DNS/dnsFoam/Allwmake +++ b/applications/solvers/DNS/dnsFoam/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments . ${WM_PROJECT_DIR:?}/wmake/scripts/have_fftw diff --git a/applications/solvers/compressible/rhoCentralFoam/Allwclean b/applications/solvers/compressible/rhoCentralFoam/Allwclean index 787221b83c..2665e2c41a 100755 --- a/applications/solvers/compressible/rhoCentralFoam/Allwclean +++ b/applications/solvers/compressible/rhoCentralFoam/Allwclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory wclean libso BCs wclean diff --git a/applications/solvers/compressible/rhoCentralFoam/Allwmake b/applications/solvers/compressible/rhoCentralFoam/Allwmake index ff1edbfa0d..368ffbde87 100755 --- a/applications/solvers/compressible/rhoCentralFoam/Allwmake +++ b/applications/solvers/compressible/rhoCentralFoam/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments (wmake $targetType BCs && wmake $targetType && wmake $targetType rhoCentralDyMFoam) diff --git a/applications/solvers/lagrangian/DPMFoam/Allwclean b/applications/solvers/lagrangian/DPMFoam/Allwclean index b78c67f661..921884d39a 100755 --- a/applications/solvers/lagrangian/DPMFoam/Allwclean +++ b/applications/solvers/lagrangian/DPMFoam/Allwclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory wclean libso DPMTurbulenceModels diff --git a/applications/solvers/lagrangian/DPMFoam/Allwmake b/applications/solvers/lagrangian/DPMFoam/Allwmake index e6a558c972..e549ab0528 100755 --- a/applications/solvers/lagrangian/DPMFoam/Allwmake +++ b/applications/solvers/lagrangian/DPMFoam/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments #------------------------------------------------------------------------------ diff --git a/applications/solvers/multiphase/MPPICInterFoam/Allwclean b/applications/solvers/multiphase/MPPICInterFoam/Allwclean index 79ee0feb22..fd8589a9c2 100755 --- a/applications/solvers/multiphase/MPPICInterFoam/Allwclean +++ b/applications/solvers/multiphase/MPPICInterFoam/Allwclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory wclean libso CompressibleTwoPhaseMixtureTurbulenceModels wclean diff --git a/applications/solvers/multiphase/MPPICInterFoam/Allwmake b/applications/solvers/multiphase/MPPICInterFoam/Allwmake index 67940b9dc1..07f6b8c1d6 100755 --- a/applications/solvers/multiphase/MPPICInterFoam/Allwmake +++ b/applications/solvers/multiphase/MPPICInterFoam/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments #------------------------------------------------------------------------------ diff --git a/applications/solvers/multiphase/compressibleInterFoam/Allwclean b/applications/solvers/multiphase/compressibleInterFoam/Allwclean index 773096f8bb..fff0fcd93a 100755 --- a/applications/solvers/multiphase/compressibleInterFoam/Allwclean +++ b/applications/solvers/multiphase/compressibleInterFoam/Allwclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory wclean libso twoPhaseMixtureThermo wclean libso surfaceTensionModels diff --git a/applications/solvers/multiphase/compressibleInterFoam/Allwmake b/applications/solvers/multiphase/compressibleInterFoam/Allwmake index b2a2c0e861..c606cfcb55 100755 --- a/applications/solvers/multiphase/compressibleInterFoam/Allwmake +++ b/applications/solvers/multiphase/compressibleInterFoam/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments #------------------------------------------------------------------------------ diff --git a/applications/solvers/multiphase/compressibleMultiphaseInterFoam/Allwclean b/applications/solvers/multiphase/compressibleMultiphaseInterFoam/Allwclean index 657fd9d242..8efc71002b 100755 --- a/applications/solvers/multiphase/compressibleMultiphaseInterFoam/Allwclean +++ b/applications/solvers/multiphase/compressibleMultiphaseInterFoam/Allwclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory wclean libso multiphaseMixtureThermo wclean diff --git a/applications/solvers/multiphase/compressibleMultiphaseInterFoam/Allwmake b/applications/solvers/multiphase/compressibleMultiphaseInterFoam/Allwmake index c9a0de59a7..fd701ea773 100755 --- a/applications/solvers/multiphase/compressibleMultiphaseInterFoam/Allwmake +++ b/applications/solvers/multiphase/compressibleMultiphaseInterFoam/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments #------------------------------------------------------------------------------ diff --git a/applications/solvers/multiphase/driftFluxFoam/Allwclean b/applications/solvers/multiphase/driftFluxFoam/Allwclean index e3d46596be..a6ba0bf9d7 100755 --- a/applications/solvers/multiphase/driftFluxFoam/Allwclean +++ b/applications/solvers/multiphase/driftFluxFoam/Allwclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory wclean libso mixtureViscosityModels wclean libso relativeVelocityModels diff --git a/applications/solvers/multiphase/driftFluxFoam/Allwmake b/applications/solvers/multiphase/driftFluxFoam/Allwmake index 0d6973139b..3dcb1104bd 100755 --- a/applications/solvers/multiphase/driftFluxFoam/Allwmake +++ b/applications/solvers/multiphase/driftFluxFoam/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments #------------------------------------------------------------------------------ diff --git a/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/Allwclean b/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/Allwclean index 1607ce8b6f..48dbdf48cf 100755 --- a/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/Allwclean +++ b/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/Allwclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory wclean libso phasesSystem wclean libso massTransferModels diff --git a/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/Allwmake b/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/Allwmake index 9abfd44e60..0a30b7d9f9 100755 --- a/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/Allwmake +++ b/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments #------------------------------------------------------------------------------ diff --git a/applications/solvers/multiphase/interCondensatingEvaporatingFoam/Allwclean b/applications/solvers/multiphase/interCondensatingEvaporatingFoam/Allwclean index eaec8f77a1..c52eb07a6e 100755 --- a/applications/solvers/multiphase/interCondensatingEvaporatingFoam/Allwclean +++ b/applications/solvers/multiphase/interCondensatingEvaporatingFoam/Allwclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory wclean libso temperaturePhaseChangeTwoPhaseMixtures wclean diff --git a/applications/solvers/multiphase/interCondensatingEvaporatingFoam/Allwmake b/applications/solvers/multiphase/interCondensatingEvaporatingFoam/Allwmake index 55d43c1741..161cf173bd 100755 --- a/applications/solvers/multiphase/interCondensatingEvaporatingFoam/Allwmake +++ b/applications/solvers/multiphase/interCondensatingEvaporatingFoam/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments #------------------------------------------------------------------------------ diff --git a/applications/solvers/multiphase/interPhaseChangeFoam/Allwclean b/applications/solvers/multiphase/interPhaseChangeFoam/Allwclean index 573e235fdc..c8c968e88a 100755 --- a/applications/solvers/multiphase/interPhaseChangeFoam/Allwclean +++ b/applications/solvers/multiphase/interPhaseChangeFoam/Allwclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory wclean libso phaseChangeTwoPhaseMixtures wclean diff --git a/applications/solvers/multiphase/interPhaseChangeFoam/Allwmake b/applications/solvers/multiphase/interPhaseChangeFoam/Allwmake index aa30427505..f71877b09c 100755 --- a/applications/solvers/multiphase/interPhaseChangeFoam/Allwmake +++ b/applications/solvers/multiphase/interPhaseChangeFoam/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments #------------------------------------------------------------------------------ diff --git a/applications/solvers/multiphase/multiphaseEulerFoam/Allwclean b/applications/solvers/multiphase/multiphaseEulerFoam/Allwclean index 727191ec35..a2b25759d4 100755 --- a/applications/solvers/multiphase/multiphaseEulerFoam/Allwclean +++ b/applications/solvers/multiphase/multiphaseEulerFoam/Allwclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory wclean libso multiphaseSystem wclean libso interfacialModels diff --git a/applications/solvers/multiphase/multiphaseEulerFoam/Allwmake b/applications/solvers/multiphase/multiphaseEulerFoam/Allwmake index 68d39777ad..4d000cef0a 100755 --- a/applications/solvers/multiphase/multiphaseEulerFoam/Allwmake +++ b/applications/solvers/multiphase/multiphaseEulerFoam/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments #------------------------------------------------------------------------------ diff --git a/applications/solvers/multiphase/multiphaseInterFoam/Allwclean b/applications/solvers/multiphase/multiphaseInterFoam/Allwclean index 11e82c1552..519d34d2b7 100755 --- a/applications/solvers/multiphase/multiphaseInterFoam/Allwclean +++ b/applications/solvers/multiphase/multiphaseInterFoam/Allwclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory wclean libso multiphaseMixture wclean diff --git a/applications/solvers/multiphase/multiphaseInterFoam/Allwmake b/applications/solvers/multiphase/multiphaseInterFoam/Allwmake index e10d6d5823..45599d519d 100755 --- a/applications/solvers/multiphase/multiphaseInterFoam/Allwmake +++ b/applications/solvers/multiphase/multiphaseInterFoam/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments #------------------------------------------------------------------------------ diff --git a/applications/solvers/multiphase/reactingEulerFoam/Allwclean b/applications/solvers/multiphase/reactingEulerFoam/Allwclean index 71b3b9609b..2fe4eb69c0 100755 --- a/applications/solvers/multiphase/reactingEulerFoam/Allwclean +++ b/applications/solvers/multiphase/reactingEulerFoam/Allwclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory wclean reactingTwoPhaseEulerFoam wclean reactingMultiphaseEulerFoam diff --git a/applications/solvers/multiphase/reactingEulerFoam/Allwmake b/applications/solvers/multiphase/reactingEulerFoam/Allwmake index 3dbd571f89..22b8bfef5c 100755 --- a/applications/solvers/multiphase/reactingEulerFoam/Allwmake +++ b/applications/solvers/multiphase/reactingEulerFoam/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments #------------------------------------------------------------------------------ diff --git a/applications/solvers/multiphase/reactingEulerFoam/reactingMultiphaseEulerFoam/Allwclean b/applications/solvers/multiphase/reactingEulerFoam/reactingMultiphaseEulerFoam/Allwclean index 451b6672a9..4e69bd6372 100755 --- a/applications/solvers/multiphase/reactingEulerFoam/reactingMultiphaseEulerFoam/Allwclean +++ b/applications/solvers/multiphase/reactingEulerFoam/reactingMultiphaseEulerFoam/Allwclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory wclean libso multiphaseSystem wclean libso multiphaseCompressibleTurbulenceModels diff --git a/applications/solvers/multiphase/reactingEulerFoam/reactingMultiphaseEulerFoam/Allwmake b/applications/solvers/multiphase/reactingEulerFoam/reactingMultiphaseEulerFoam/Allwmake index 7bf70226d0..3a29d0b174 100755 --- a/applications/solvers/multiphase/reactingEulerFoam/reactingMultiphaseEulerFoam/Allwmake +++ b/applications/solvers/multiphase/reactingEulerFoam/reactingMultiphaseEulerFoam/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments #------------------------------------------------------------------------------ diff --git a/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/Allwclean b/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/Allwclean index e74b99935d..909e0eed6a 100755 --- a/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/Allwclean +++ b/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/Allwclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory wclean diff --git a/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/Allwmake b/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/Allwmake index 7bf70226d0..3a29d0b174 100755 --- a/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/Allwmake +++ b/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments #------------------------------------------------------------------------------ diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/Allwclean b/applications/solvers/multiphase/twoPhaseEulerFoam/Allwclean index 056bc90a3d..162d04c3c8 100755 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/Allwclean +++ b/applications/solvers/multiphase/twoPhaseEulerFoam/Allwclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory wclean libso twoPhaseSystem wclean libso interfacialModels diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/Allwmake b/applications/solvers/multiphase/twoPhaseEulerFoam/Allwmake index 8fbb391066..de87d95e34 100755 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/Allwmake +++ b/applications/solvers/multiphase/twoPhaseEulerFoam/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments #------------------------------------------------------------------------------ diff --git a/applications/test/00-dummy/Allwclean b/applications/test/00-dummy/Allwclean index a5522688fa..c29945245a 100755 --- a/applications/test/00-dummy/Allwclean +++ b/applications/test/00-dummy/Allwclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory wclean libso dummy wclean diff --git a/applications/test/00-dummy/Allwmake b/applications/test/00-dummy/Allwmake index a860a07515..a7c0263c11 100755 --- a/applications/test/00-dummy/Allwmake +++ b/applications/test/00-dummy/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory # Can never be too certain ... # Compile tools for wmake diff --git a/applications/test/fieldMapping/pipe1D/Allrun b/applications/test/fieldMapping/pipe1D/Allrun index 8c29e97d11..65e9be2eb9 100755 --- a/applications/test/fieldMapping/pipe1D/Allrun +++ b/applications/test/fieldMapping/pipe1D/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/applications/test/hexRef8/block/Allrun b/applications/test/hexRef8/block/Allrun index 01cc28c1bb..a58935c9f6 100755 --- a/applications/test/hexRef8/block/Allrun +++ b/applications/test/hexRef8/block/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/applications/test/mapDistributePolyMesh/cavity/Allclean b/applications/test/mapDistributePolyMesh/cavity/Allclean index ca64f313b3..97e8d34742 100755 --- a/applications/test/mapDistributePolyMesh/cavity/Allclean +++ b/applications/test/mapDistributePolyMesh/cavity/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/applications/test/mapDistributePolyMesh/cavity/Allrun b/applications/test/mapDistributePolyMesh/cavity/Allrun index 75b48fcd5e..a723077eb9 100755 --- a/applications/test/mapDistributePolyMesh/cavity/Allrun +++ b/applications/test/mapDistributePolyMesh/cavity/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/applications/test/parallelOverset/heatTransfer/Allclean b/applications/test/parallelOverset/heatTransfer/Allclean index becc3c757e..2f87da61e0 100755 --- a/applications/test/parallelOverset/heatTransfer/Allclean +++ b/applications/test/parallelOverset/heatTransfer/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/applications/test/parallelOverset/heatTransfer/Allrun.pre b/applications/test/parallelOverset/heatTransfer/Allrun.pre index 2b7d44cffa..af3563dd5f 100755 --- a/applications/test/parallelOverset/heatTransfer/Allrun.pre +++ b/applications/test/parallelOverset/heatTransfer/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/applications/test/volField/cavity/Allrun b/applications/test/volField/cavity/Allrun index 619315f70c..deb0931356 100755 --- a/applications/test/volField/cavity/Allrun +++ b/applications/test/volField/cavity/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions application=Test-volField diff --git a/applications/utilities/mesh/conversion/ccm/Allwmake b/applications/utilities/mesh/conversion/ccm/Allwmake index b64deac424..5551b3291c 100755 --- a/applications/utilities/mesh/conversion/ccm/Allwmake +++ b/applications/utilities/mesh/conversion/ccm/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments # (error catching) . ${WM_PROJECT_DIR:?}/wmake/scripts/sysFunctions # General system functions diff --git a/applications/utilities/mesh/generation/Allwmake b/applications/utilities/mesh/generation/Allwmake index fa8da9d1ff..779938c7f7 100755 --- a/applications/utilities/mesh/generation/Allwmake +++ b/applications/utilities/mesh/generation/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments # (error catching) #------------------------------------------------------------------------------ diff --git a/applications/utilities/mesh/generation/extrude2DMesh/Allwclean b/applications/utilities/mesh/generation/extrude2DMesh/Allwclean index 71e45051ee..c965d33ed8 100755 --- a/applications/utilities/mesh/generation/extrude2DMesh/Allwclean +++ b/applications/utilities/mesh/generation/extrude2DMesh/Allwclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory wclean libso extrude2DMesh wclean diff --git a/applications/utilities/mesh/generation/extrude2DMesh/Allwmake b/applications/utilities/mesh/generation/extrude2DMesh/Allwmake index 20f331844e..f5a6f98376 100755 --- a/applications/utilities/mesh/generation/extrude2DMesh/Allwmake +++ b/applications/utilities/mesh/generation/extrude2DMesh/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments #------------------------------------------------------------------------------ diff --git a/applications/utilities/mesh/generation/foamyMesh/Allwclean b/applications/utilities/mesh/generation/foamyMesh/Allwclean index 725d20869d..4e1eabbf57 100755 --- a/applications/utilities/mesh/generation/foamyMesh/Allwclean +++ b/applications/utilities/mesh/generation/foamyMesh/Allwclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory wclean conformalVoronoiMesh wclean conformalVoronoi2DMesh diff --git a/applications/utilities/mesh/generation/foamyMesh/Allwmake b/applications/utilities/mesh/generation/foamyMesh/Allwmake index f1022241de..2b692e4d23 100755 --- a/applications/utilities/mesh/generation/foamyMesh/Allwmake +++ b/applications/utilities/mesh/generation/foamyMesh/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory export WM_CONTINUE_ON_ERROR=true # Optional unit . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments # (error catching) . ${WM_PROJECT_DIR:?}/wmake/scripts/have_cgal diff --git a/applications/utilities/mesh/generation/foamyMesh/foamyHexMeshSurfaceSimplify/Allwmake b/applications/utilities/mesh/generation/foamyMesh/foamyHexMeshSurfaceSimplify/Allwmake index 3b99eb9e29..95fd9f9009 100755 --- a/applications/utilities/mesh/generation/foamyMesh/foamyHexMeshSurfaceSimplify/Allwmake +++ b/applications/utilities/mesh/generation/foamyMesh/foamyHexMeshSurfaceSimplify/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments #------------------------------------------------------------------------------ diff --git a/applications/utilities/mesh/manipulation/renumberMesh/Allwmake b/applications/utilities/mesh/manipulation/renumberMesh/Allwmake index 5546fd33c7..0f0d32738e 100755 --- a/applications/utilities/mesh/manipulation/renumberMesh/Allwmake +++ b/applications/utilities/mesh/manipulation/renumberMesh/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments # (error catching) . ${WM_PROJECT_DIR:?}/wmake/scripts/sysFunctions # General system functions . ${WM_PROJECT_DIR:?}/wmake/scripts/have_zoltan diff --git a/applications/utilities/mesh/manipulation/setSet/Allwmake b/applications/utilities/mesh/manipulation/setSet/Allwmake index 6a42c136ad..e970894baf 100755 --- a/applications/utilities/mesh/manipulation/setSet/Allwmake +++ b/applications/utilities/mesh/manipulation/setSet/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments # (error catching) . ${WM_PROJECT_DIR:?}/wmake/scripts/have_readline diff --git a/applications/utilities/miscellaneous/OSspecific/Allwmake b/applications/utilities/miscellaneous/OSspecific/Allwmake index 17badb9402..901e198011 100755 --- a/applications/utilities/miscellaneous/OSspecific/Allwmake +++ b/applications/utilities/miscellaneous/OSspecific/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/sysFunctions #------------------------------------------------------------------------------ diff --git a/applications/utilities/miscellaneous/foamHelp/Allwclean b/applications/utilities/miscellaneous/foamHelp/Allwclean index b34d18b24a..f8505c44ca 100755 --- a/applications/utilities/miscellaneous/foamHelp/Allwclean +++ b/applications/utilities/miscellaneous/foamHelp/Allwclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory wclean libso helpTypes wclean diff --git a/applications/utilities/miscellaneous/foamHelp/Allwmake b/applications/utilities/miscellaneous/foamHelp/Allwmake index 807d0c7ca9..596233e7a5 100755 --- a/applications/utilities/miscellaneous/foamHelp/Allwmake +++ b/applications/utilities/miscellaneous/foamHelp/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments #------------------------------------------------------------------------------ diff --git a/applications/utilities/postProcessing/graphics/PVReaders/Allwclean b/applications/utilities/postProcessing/graphics/PVReaders/Allwclean index e44f07aaa5..131482f6e7 100755 --- a/applications/utilities/postProcessing/graphics/PVReaders/Allwclean +++ b/applications/utilities/postProcessing/graphics/PVReaders/Allwclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/wmakeFunctions # Require wmake functions . ${WM_PROJECT_DIR:?}/wmake/scripts/paraviewFunctions # For API info # ----------------------------------------------------------------------------- diff --git a/applications/utilities/postProcessing/graphics/PVReaders/Allwmake b/applications/utilities/postProcessing/graphics/PVReaders/Allwmake index c81120f893..6dbaa02224 100755 --- a/applications/utilities/postProcessing/graphics/PVReaders/Allwmake +++ b/applications/utilities/postProcessing/graphics/PVReaders/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory export WM_CONTINUE_ON_ERROR=true # Optional unit . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments . ${WM_PROJECT_DIR:?}/wmake/scripts/paraviewFunctions # CMake, PV functions diff --git a/applications/utilities/postProcessing/noise/Allwmake b/applications/utilities/postProcessing/noise/Allwmake index 9cb77fb635..53496d5db8 100755 --- a/applications/utilities/postProcessing/noise/Allwmake +++ b/applications/utilities/postProcessing/noise/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments # (error catching) . ${WM_PROJECT_DIR:?}/wmake/scripts/have_fftw diff --git a/applications/utilities/preProcessing/boxTurb/Allwmake b/applications/utilities/preProcessing/boxTurb/Allwmake index 906de00edf..4892e4232c 100755 --- a/applications/utilities/preProcessing/boxTurb/Allwmake +++ b/applications/utilities/preProcessing/boxTurb/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments # (error catching) . ${WM_PROJECT_DIR:?}/wmake/scripts/have_fftw diff --git a/applications/utilities/preProcessing/wallFunctionTable/Allwclean b/applications/utilities/preProcessing/wallFunctionTable/Allwclean index d2a7ff3af9..475d0f8ead 100755 --- a/applications/utilities/preProcessing/wallFunctionTable/Allwclean +++ b/applications/utilities/preProcessing/wallFunctionTable/Allwclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory wclean libso tabulatedWallFunction wclean diff --git a/applications/utilities/preProcessing/wallFunctionTable/Allwmake b/applications/utilities/preProcessing/wallFunctionTable/Allwmake index 06dd573391..9573cd6e38 100755 --- a/applications/utilities/preProcessing/wallFunctionTable/Allwmake +++ b/applications/utilities/preProcessing/wallFunctionTable/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments #------------------------------------------------------------------------------ diff --git a/applications/utilities/surface/surfaceBooleanFeatures/Allwmake b/applications/utilities/surface/surfaceBooleanFeatures/Allwmake index e6e1bfa134..0d92662d4e 100755 --- a/applications/utilities/surface/surfaceBooleanFeatures/Allwmake +++ b/applications/utilities/surface/surfaceBooleanFeatures/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments # (error catching) . ${WM_PROJECT_DIR:?}/wmake/scripts/have_cgal diff --git a/applications/utilities/surface/surfaceFeatureExtract/Allwclean b/applications/utilities/surface/surfaceFeatureExtract/Allwclean index 421b6686c4..e940cf251f 100755 --- a/applications/utilities/surface/surfaceFeatureExtract/Allwclean +++ b/applications/utilities/surface/surfaceFeatureExtract/Allwclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory wclean libso extractionMethod wclean . diff --git a/applications/utilities/surface/surfaceFeatureExtract/Allwmake b/applications/utilities/surface/surfaceFeatureExtract/Allwmake index c5c5ccb2be..f31fd89852 100755 --- a/applications/utilities/surface/surfaceFeatureExtract/Allwmake +++ b/applications/utilities/surface/surfaceFeatureExtract/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments (wmake $targetType extractionMethod && wmake $targetType) diff --git a/doc/Allwmake b/doc/Allwmake index 57d993de84..2e3dd9a5ff 100755 --- a/doc/Allwmake +++ b/doc/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory # Fix permissions (NB: '+X' and not '+x'!) chmod a+rX $WM_PROJECT_DIR $WM_PROJECT_DIR/doc Doxygen diff --git a/doc/Doxygen/Allwmake b/doc/Doxygen/Allwmake index 9ef0dfe02c..79ac57f576 100755 --- a/doc/Doxygen/Allwmake +++ b/doc/Doxygen/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory [ -d "$WM_PROJECT_DIR" ] || { echo "Error (${0##*/}) : no \$WM_PROJECT_DIR found" echo " Check your OpenFOAM environment and installation" diff --git a/etc/templates/axisymmetricJet/Allclean b/etc/templates/axisymmetricJet/Allclean index 04120ad052..08a28bfa7e 100755 --- a/etc/templates/axisymmetricJet/Allclean +++ b/etc/templates/axisymmetricJet/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . $WM_PROJECT_DIR/bin/tools/CleanFunctions # Tutorial clean functions cleanCase diff --git a/etc/templates/axisymmetricJet/Allrun b/etc/templates/axisymmetricJet/Allrun index d3930811be..110caeb362 100755 --- a/etc/templates/axisymmetricJet/Allrun +++ b/etc/templates/axisymmetricJet/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions runApplication blockMesh diff --git a/modules/doc/makelink.example b/modules/doc/makelink.example index 78c5956bbc..b91e6dc46a 100755 --- a/modules/doc/makelink.example +++ b/modules/doc/makelink.example @@ -1,11 +1,11 @@ #!/bin/sh -cd ${0%/*} || exit 1 +cd "${0%/*}" || exit # Manually create doxygen links for module documentation for dir in cfmesh/meshLibrary do - [ -d "../$dir" ] && ln -svf ../$dir ${dir##*/} + [ -d "../$dir" ] && ln -svf "../$dir" "${dir##*/}" done #------------------------------------------------------------------------------ diff --git a/src/OSspecific/MSwindows/Allwmake b/src/OSspecific/MSwindows/Allwmake index 1c652edd72..c474ed4c23 100755 --- a/src/OSspecific/MSwindows/Allwmake +++ b/src/OSspecific/MSwindows/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory targetType=libo # Preferred library type . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments $* diff --git a/src/OSspecific/POSIX/Allwmake b/src/OSspecific/POSIX/Allwmake index c765b061e5..f5913a9a4e 100755 --- a/src/OSspecific/POSIX/Allwmake +++ b/src/OSspecific/POSIX/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory targetType=libo # Preferred library type . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments $* diff --git a/src/OpenFOAM/Alltouch b/src/OpenFOAM/Alltouch index d5e62df883..ca1d3ac8bb 100755 --- a/src/OpenFOAM/Alltouch +++ b/src/OpenFOAM/Alltouch @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory #------------------------------------------------------------------------------ touch=true diff --git a/src/OpenFOAM/primitives/strings/stringOps/toScalar/createCode b/src/OpenFOAM/primitives/strings/stringOps/toScalar/createCode index 520298b420..979fcd398d 100755 --- a/src/OpenFOAM/primitives/strings/stringOps/toScalar/createCode +++ b/src/OpenFOAM/primitives/strings/stringOps/toScalar/createCode @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory # Manually create ragel scanner and lemon parser header prefix=evalStringToScalar diff --git a/src/Pstream/Allwclean b/src/Pstream/Allwclean index 29ce00baa0..41b4ec0091 100755 --- a/src/Pstream/Allwclean +++ b/src/Pstream/Allwclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory # Clean an mpi-versioned library wcleanMpiLib() diff --git a/src/Pstream/Allwmake b/src/Pstream/Allwmake index 76400e8d3a..8673c4ac05 100755 --- a/src/Pstream/Allwmake +++ b/src/Pstream/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments #------------------------------------------------------------------------------ diff --git a/src/TurbulenceModels/Allwclean b/src/TurbulenceModels/Allwclean index 4e30906348..c04117671b 100755 --- a/src/TurbulenceModels/Allwclean +++ b/src/TurbulenceModels/Allwclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory wclean turbulenceModels wclean incompressible diff --git a/src/TurbulenceModels/Allwmake b/src/TurbulenceModels/Allwmake index b2f1ae7917..bc0604b152 100755 --- a/src/TurbulenceModels/Allwmake +++ b/src/TurbulenceModels/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments #------------------------------------------------------------------------------ diff --git a/src/conversion/Allwmake b/src/conversion/Allwmake index 926b65ccc6..2bd58a40ed 100755 --- a/src/conversion/Allwmake +++ b/src/conversion/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory targetType=libso # Preferred library type . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments diff --git a/src/conversion/ccm/Allwmake b/src/conversion/ccm/Allwmake index d9ac45c153..4befab818c 100755 --- a/src/conversion/ccm/Allwmake +++ b/src/conversion/ccm/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments . ${WM_PROJECT_DIR:?}/wmake/scripts/have_ccmio diff --git a/src/dummyThirdParty/Allwmake b/src/dummyThirdParty/Allwmake index febb89f72d..ab5651cf44 100755 --- a/src/dummyThirdParty/Allwmake +++ b/src/dummyThirdParty/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments #------------------------------------------------------------------------------ diff --git a/src/fileFormats/stl/createCode b/src/fileFormats/stl/createCode index 23f488cdd2..9bbbed96a3 100755 --- a/src/fileFormats/stl/createCode +++ b/src/fileFormats/stl/createCode @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory # Manually create ragel scanner diff --git a/src/functionObjects/Allwmake b/src/functionObjects/Allwmake index 577c090edb..bcb29dea34 100755 --- a/src/functionObjects/Allwmake +++ b/src/functionObjects/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments #------------------------------------------------------------------------------ diff --git a/src/functionObjects/graphics/Allwmake b/src/functionObjects/graphics/Allwmake index 4d045fd78a..33fb4cf3f2 100755 --- a/src/functionObjects/graphics/Allwmake +++ b/src/functionObjects/graphics/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments #------------------------------------------------------------------------------ diff --git a/src/functionObjects/graphics/runTimePostProcessing/Allwclean b/src/functionObjects/graphics/runTimePostProcessing/Allwclean index 68b238fabe..af1168f7f3 100755 --- a/src/functionObjects/graphics/runTimePostProcessing/Allwclean +++ b/src/functionObjects/graphics/runTimePostProcessing/Allwclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/wmakeFunctions # Require wmake functions #------------------------------------------------------------------------------ diff --git a/src/functionObjects/graphics/runTimePostProcessing/Allwmake b/src/functionObjects/graphics/runTimePostProcessing/Allwmake index 0fff1c4811..2968371e31 100755 --- a/src/functionObjects/graphics/runTimePostProcessing/Allwmake +++ b/src/functionObjects/graphics/runTimePostProcessing/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/cmakeFunctions # Require cmake functions # ----------------------------------------------------------------------------- diff --git a/src/functionObjects/randomProcesses/Allwmake b/src/functionObjects/randomProcesses/Allwmake index eedf18476b..1855fae2a1 100755 --- a/src/functionObjects/randomProcesses/Allwmake +++ b/src/functionObjects/randomProcesses/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory targetType=libso # Preferred library type . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments . ${WM_PROJECT_DIR:?}/wmake/scripts/have_fftw diff --git a/src/fvAgglomerationMethods/Allwmake b/src/fvAgglomerationMethods/Allwmake index e8982f6f9c..7209e1c93c 100755 --- a/src/fvAgglomerationMethods/Allwmake +++ b/src/fvAgglomerationMethods/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments . ${WM_PROJECT_DIR:?}/wmake/scripts/have_mgridgen diff --git a/src/lagrangian/Allwmake b/src/lagrangian/Allwmake index 228e5412ab..5b6e8397f1 100755 --- a/src/lagrangian/Allwmake +++ b/src/lagrangian/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments #------------------------------------------------------------------------------ diff --git a/src/lagrangian/molecularDynamics/Allwmake b/src/lagrangian/molecularDynamics/Allwmake index 60c5a189e8..b28efb5d2e 100755 --- a/src/lagrangian/molecularDynamics/Allwmake +++ b/src/lagrangian/molecularDynamics/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments #------------------------------------------------------------------------------ diff --git a/src/mesh/Allwmake b/src/mesh/Allwmake index 41c6219648..e285a6995a 100755 --- a/src/mesh/Allwmake +++ b/src/mesh/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments #------------------------------------------------------------------------------ diff --git a/src/parallel/Allwmake b/src/parallel/Allwmake index 6ecb623951..46ab642845 100755 --- a/src/parallel/Allwmake +++ b/src/parallel/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments #------------------------------------------------------------------------------ diff --git a/src/parallel/decompose/Allwclean b/src/parallel/decompose/Allwclean index 5fd3b3d499..fe6c9dd2a9 100755 --- a/src/parallel/decompose/Allwclean +++ b/src/parallel/decompose/Allwclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory # Clean an mpi-versioned library wcleanMpiLib() diff --git a/src/parallel/decompose/Allwmake b/src/parallel/decompose/Allwmake index 3f60c221d9..755ef7f95e 100755 --- a/src/parallel/decompose/Allwmake +++ b/src/parallel/decompose/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments . ${WM_PROJECT_DIR:?}/wmake/scripts/have_kahip . ${WM_PROJECT_DIR:?}/wmake/scripts/have_metis diff --git a/src/parallel/decompose/AllwmakeLnInclude b/src/parallel/decompose/AllwmakeLnInclude index 6041217fec..db014338ba 100755 --- a/src/parallel/decompose/AllwmakeLnInclude +++ b/src/parallel/decompose/AllwmakeLnInclude @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory wmakeLnInclude -u decompositionMethods wmakeLnInclude -u kahipDecomp diff --git a/src/parallel/reconstruct/Allwmake b/src/parallel/reconstruct/Allwmake index 5b2fbb5af6..77b67cd1ec 100755 --- a/src/parallel/reconstruct/Allwmake +++ b/src/parallel/reconstruct/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments #------------------------------------------------------------------------------ diff --git a/src/phaseSystemModels/Allwclean b/src/phaseSystemModels/Allwclean index 8001ebf019..ab4d65ca03 100755 --- a/src/phaseSystemModels/Allwclean +++ b/src/phaseSystemModels/Allwclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory wclean libso reactingEulerFoam/phaseSystems wclean libso reactingEulerFoam/interfacialModels diff --git a/src/phaseSystemModels/Allwmake b/src/phaseSystemModels/Allwmake index 759e13662f..5e5d00632b 100755 --- a/src/phaseSystemModels/Allwmake +++ b/src/phaseSystemModels/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments #------------------------------------------------------------------------------ diff --git a/src/randomProcesses/Allwmake b/src/randomProcesses/Allwmake index eedf18476b..1855fae2a1 100755 --- a/src/randomProcesses/Allwmake +++ b/src/randomProcesses/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory targetType=libso # Preferred library type . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments . ${WM_PROJECT_DIR:?}/wmake/scripts/have_fftw diff --git a/src/regionModels/Allwclean b/src/regionModels/Allwclean index 7ba2cd3e51..f95863c347 100755 --- a/src/regionModels/Allwclean +++ b/src/regionModels/Allwclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory wclean libso regionModel wclean libso pyrolysisModels diff --git a/src/regionModels/Allwmake b/src/regionModels/Allwmake index ff97a5899f..7a14792be0 100755 --- a/src/regionModels/Allwmake +++ b/src/regionModels/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments #------------------------------------------------------------------------------ diff --git a/src/renumber/Allwmake b/src/renumber/Allwmake index 50e04920cf..0e5edabb3e 100755 --- a/src/renumber/Allwmake +++ b/src/renumber/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory targetType=libso # Preferred library type . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments . ${WM_PROJECT_DIR:?}/wmake/scripts/have_boost diff --git a/src/thermophysicalModels/Allwmake b/src/thermophysicalModels/Allwmake index 1efcd8e072..a54beacdba 100755 --- a/src/thermophysicalModels/Allwmake +++ b/src/thermophysicalModels/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments #------------------------------------------------------------------------------ diff --git a/src/transportModels/Allwmake b/src/transportModels/Allwmake index 098cfb9b91..c0e9865b7b 100755 --- a/src/transportModels/Allwmake +++ b/src/transportModels/Allwmake @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments #------------------------------------------------------------------------------ diff --git a/tutorials/Allclean b/tutorials/Allclean index 259bbd8395..56f343f88e 100755 --- a/tutorials/Allclean +++ b/tutorials/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/LogFunctions # Tutorial log-file functions #------------------------------------------------------------------------------ diff --git a/tutorials/Allcollect b/tutorials/Allcollect index 0595c4fd7f..745ab295a3 100755 --- a/tutorials/Allcollect +++ b/tutorials/Allcollect @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/LogFunctions # Tutorial log-file functions #------------------------------------------------------------------------------ diff --git a/tutorials/Allrun b/tutorials/Allrun index 4e1068d0c1..fdcc8f4a1b 100755 --- a/tutorials/Allrun +++ b/tutorials/Allrun @@ -20,7 +20,7 @@ # Run tutorial cases and summarize the outcome as 'testLoopReport' # #------------------------------------------------------------------------------ -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory usage() { diff --git a/tutorials/Alltest b/tutorials/Alltest index b557405d31..a7621d0167 100755 --- a/tutorials/Alltest +++ b/tutorials/Alltest @@ -23,7 +23,7 @@ # The entire OpenFOAM environment (WM_PROJECT_DIR, etc) # #------------------------------------------------------------------------------ -cd "${0%/*}" || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory usage() { @@ -247,7 +247,7 @@ else cp -a "$rootDir" "$TEST_RUN_DIR" fi -cd "$TEST_RUN_DIR" || exit 1 +cd "$TEST_RUN_DIR" || exit # Generate Alltest script (replacement for this one) diff --git a/tutorials/DNS/dnsFoam/boxTurb16/Allclean b/tutorials/DNS/dnsFoam/boxTurb16/Allclean index ba04bf4f4d..c72727b641 100755 --- a/tutorials/DNS/dnsFoam/boxTurb16/Allclean +++ b/tutorials/DNS/dnsFoam/boxTurb16/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/DNS/dnsFoam/boxTurb16/Allrun b/tutorials/DNS/dnsFoam/boxTurb16/Allrun index 5f632eef2a..4f10ab9ec1 100755 --- a/tutorials/DNS/dnsFoam/boxTurb16/Allrun +++ b/tutorials/DNS/dnsFoam/boxTurb16/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/IO/dictionary/Allclean b/tutorials/IO/dictionary/Allclean index c5bb819843..6ee7b56913 100755 --- a/tutorials/IO/dictionary/Allclean +++ b/tutorials/IO/dictionary/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory #------------------------------------------------------------------------------ rm -f log.* # No application, clean manually diff --git a/tutorials/IO/dictionary/Allrun b/tutorials/IO/dictionary/Allrun index 369aa6dbcf..6fa00243f0 100755 --- a/tutorials/IO/dictionary/Allrun +++ b/tutorials/IO/dictionary/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/IO/dictionary/Alltest b/tutorials/IO/dictionary/Alltest index 0f8df68908..0220f0ea0f 100755 --- a/tutorials/IO/dictionary/Alltest +++ b/tutorials/IO/dictionary/Alltest @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/IO/dictionary/TestParsing b/tutorials/IO/dictionary/TestParsing index 7b656c9613..c557480f8f 100755 --- a/tutorials/IO/dictionary/TestParsing +++ b/tutorials/IO/dictionary/TestParsing @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/IO/fileHandler/Allclean b/tutorials/IO/fileHandler/Allclean index 43db216ce9..e474daefee 100755 --- a/tutorials/IO/fileHandler/Allclean +++ b/tutorials/IO/fileHandler/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/IO/fileHandler/Allrun b/tutorials/IO/fileHandler/Allrun index 5692f90ae6..38def00b17 100755 --- a/tutorials/IO/fileHandler/Allrun +++ b/tutorials/IO/fileHandler/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/IO/systemCall/Allrun b/tutorials/IO/systemCall/Allrun index bfa19e1775..c1639304f8 100755 --- a/tutorials/IO/systemCall/Allrun +++ b/tutorials/IO/systemCall/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/basic/laplacianFoam/flange/Allclean b/tutorials/basic/laplacianFoam/flange/Allclean index 7a2c8727b1..9a704a4f84 100755 --- a/tutorials/basic/laplacianFoam/flange/Allclean +++ b/tutorials/basic/laplacianFoam/flange/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/basic/laplacianFoam/flange/Allrun b/tutorials/basic/laplacianFoam/flange/Allrun index d046b573f8..67d80e3f93 100755 --- a/tutorials/basic/laplacianFoam/flange/Allrun +++ b/tutorials/basic/laplacianFoam/flange/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/basic/overLaplacianDyMFoam/heatTransfer/Allclean b/tutorials/basic/overLaplacianDyMFoam/heatTransfer/Allclean index a580cf3ad4..ac149d692c 100755 --- a/tutorials/basic/overLaplacianDyMFoam/heatTransfer/Allclean +++ b/tutorials/basic/overLaplacianDyMFoam/heatTransfer/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/basic/overLaplacianDyMFoam/heatTransfer/Allrun b/tutorials/basic/overLaplacianDyMFoam/heatTransfer/Allrun index 39eb3645d5..7c0ade4cfa 100755 --- a/tutorials/basic/overLaplacianDyMFoam/heatTransfer/Allrun +++ b/tutorials/basic/overLaplacianDyMFoam/heatTransfer/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/basic/overLaplacianDyMFoam/heatTransfer/Allrun.pre b/tutorials/basic/overLaplacianDyMFoam/heatTransfer/Allrun.pre index 2b7d44cffa..af3563dd5f 100755 --- a/tutorials/basic/overLaplacianDyMFoam/heatTransfer/Allrun.pre +++ b/tutorials/basic/overLaplacianDyMFoam/heatTransfer/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/basic/overPotentialFoam/cylinder/Allclean b/tutorials/basic/overPotentialFoam/cylinder/Allclean index b99a7cdd05..e38a2c7a20 100755 --- a/tutorials/basic/overPotentialFoam/cylinder/Allclean +++ b/tutorials/basic/overPotentialFoam/cylinder/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/basic/overPotentialFoam/cylinder/Allrun b/tutorials/basic/overPotentialFoam/cylinder/Allrun index 1f9e19cfa2..7a8cabf161 100755 --- a/tutorials/basic/overPotentialFoam/cylinder/Allrun +++ b/tutorials/basic/overPotentialFoam/cylinder/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/basic/overPotentialFoam/cylinder/Allrun.pre b/tutorials/basic/overPotentialFoam/cylinder/Allrun.pre index a16bf252a5..2822948074 100755 --- a/tutorials/basic/overPotentialFoam/cylinder/Allrun.pre +++ b/tutorials/basic/overPotentialFoam/cylinder/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/basic/overPotentialFoam/cylinder/cylinderAndBackground/Allclean b/tutorials/basic/overPotentialFoam/cylinder/cylinderAndBackground/Allclean index 7a3d92a9d3..385a30a2f2 100755 --- a/tutorials/basic/overPotentialFoam/cylinder/cylinderAndBackground/Allclean +++ b/tutorials/basic/overPotentialFoam/cylinder/cylinderAndBackground/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/basic/overPotentialFoam/cylinder/cylinderAndBackground/Allrun b/tutorials/basic/overPotentialFoam/cylinder/cylinderAndBackground/Allrun index b6b22e10a9..8c92b17f92 100755 --- a/tutorials/basic/overPotentialFoam/cylinder/cylinderAndBackground/Allrun +++ b/tutorials/basic/overPotentialFoam/cylinder/cylinderAndBackground/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/basic/overPotentialFoam/cylinder/cylinderAndBackground/Allrun.pre b/tutorials/basic/overPotentialFoam/cylinder/cylinderAndBackground/Allrun.pre index 82380faff0..dcf0a0a3a0 100755 --- a/tutorials/basic/overPotentialFoam/cylinder/cylinderAndBackground/Allrun.pre +++ b/tutorials/basic/overPotentialFoam/cylinder/cylinderAndBackground/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/basic/overPotentialFoam/cylinder/cylinderMesh/Allrun.pre b/tutorials/basic/overPotentialFoam/cylinder/cylinderMesh/Allrun.pre index 020fb73544..189ec9201d 100755 --- a/tutorials/basic/overPotentialFoam/cylinder/cylinderMesh/Allrun.pre +++ b/tutorials/basic/overPotentialFoam/cylinder/cylinderMesh/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/basic/potentialFoam/cylinder/Allclean b/tutorials/basic/potentialFoam/cylinder/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/basic/potentialFoam/cylinder/Allclean +++ b/tutorials/basic/potentialFoam/cylinder/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/basic/potentialFoam/cylinder/Allrun b/tutorials/basic/potentialFoam/cylinder/Allrun index 16054a18b3..6a6f537d8e 100755 --- a/tutorials/basic/potentialFoam/cylinder/Allrun +++ b/tutorials/basic/potentialFoam/cylinder/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/basic/potentialFoam/pitzDaily/Allclean b/tutorials/basic/potentialFoam/pitzDaily/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/basic/potentialFoam/pitzDaily/Allclean +++ b/tutorials/basic/potentialFoam/pitzDaily/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/basic/potentialFoam/pitzDaily/Allrun b/tutorials/basic/potentialFoam/pitzDaily/Allrun index ddf63a27f7..30fbb772ac 100755 --- a/tutorials/basic/potentialFoam/pitzDaily/Allrun +++ b/tutorials/basic/potentialFoam/pitzDaily/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/PDRFoam/flamePropagationWithObstacles/Allclean b/tutorials/combustion/PDRFoam/flamePropagationWithObstacles/Allclean index 50f8b81b0e..c645851b71 100755 --- a/tutorials/combustion/PDRFoam/flamePropagationWithObstacles/Allclean +++ b/tutorials/combustion/PDRFoam/flamePropagationWithObstacles/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/PDRFoam/flamePropagationWithObstacles/Allrun b/tutorials/combustion/PDRFoam/flamePropagationWithObstacles/Allrun index e76474da80..3773e79782 100755 --- a/tutorials/combustion/PDRFoam/flamePropagationWithObstacles/Allrun +++ b/tutorials/combustion/PDRFoam/flamePropagationWithObstacles/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/XiDyMFoam/annularCombustorTurbine/Allclean b/tutorials/combustion/XiDyMFoam/annularCombustorTurbine/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/combustion/XiDyMFoam/annularCombustorTurbine/Allclean +++ b/tutorials/combustion/XiDyMFoam/annularCombustorTurbine/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/XiDyMFoam/annularCombustorTurbine/Allrun b/tutorials/combustion/XiDyMFoam/annularCombustorTurbine/Allrun index 4deed31ca5..20ddac1d57 100755 --- a/tutorials/combustion/XiDyMFoam/annularCombustorTurbine/Allrun +++ b/tutorials/combustion/XiDyMFoam/annularCombustorTurbine/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/XiDyMFoam/annularCombustorTurbine/Allrun.mesh b/tutorials/combustion/XiDyMFoam/annularCombustorTurbine/Allrun.mesh index 49917c0bdd..c4d9a9467a 100755 --- a/tutorials/combustion/XiDyMFoam/annularCombustorTurbine/Allrun.mesh +++ b/tutorials/combustion/XiDyMFoam/annularCombustorTurbine/Allrun.mesh @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/XiEngineFoam/kivaTest/Allclean b/tutorials/combustion/XiEngineFoam/kivaTest/Allclean index 775a74b3d7..a1c40f9458 100755 --- a/tutorials/combustion/XiEngineFoam/kivaTest/Allclean +++ b/tutorials/combustion/XiEngineFoam/kivaTest/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/XiEngineFoam/kivaTest/Allrun b/tutorials/combustion/XiEngineFoam/kivaTest/Allrun index a310dde2f7..127326bf64 100755 --- a/tutorials/combustion/XiEngineFoam/kivaTest/Allrun +++ b/tutorials/combustion/XiEngineFoam/kivaTest/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/XiEngineFoam/kivaTest/Allrun-parallel b/tutorials/combustion/XiEngineFoam/kivaTest/Allrun-parallel index 82b19b9cdb..57ba884199 100755 --- a/tutorials/combustion/XiEngineFoam/kivaTest/Allrun-parallel +++ b/tutorials/combustion/XiEngineFoam/kivaTest/Allrun-parallel @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/XiFoam/RAS/Allclean b/tutorials/combustion/XiFoam/RAS/Allclean index 06c12fc9a5..ff7c5bda76 100755 --- a/tutorials/combustion/XiFoam/RAS/Allclean +++ b/tutorials/combustion/XiFoam/RAS/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/XiFoam/RAS/Allrun b/tutorials/combustion/XiFoam/RAS/Allrun index 8a43d2f16d..2501be2429 100755 --- a/tutorials/combustion/XiFoam/RAS/Allrun +++ b/tutorials/combustion/XiFoam/RAS/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/chemFoam/gri/Allclean b/tutorials/combustion/chemFoam/gri/Allclean index 9f09e9930d..6580852530 100755 --- a/tutorials/combustion/chemFoam/gri/Allclean +++ b/tutorials/combustion/chemFoam/gri/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/chemFoam/gri/Allrun b/tutorials/combustion/chemFoam/gri/Allrun index 8a86732907..2715bedcd4 100755 --- a/tutorials/combustion/chemFoam/gri/Allrun +++ b/tutorials/combustion/chemFoam/gri/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/chemFoam/gri/validation/Allrun b/tutorials/combustion/chemFoam/gri/validation/Allrun index 041628b097..7bfa68321e 100755 --- a/tutorials/combustion/chemFoam/gri/validation/Allrun +++ b/tutorials/combustion/chemFoam/gri/validation/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory # Extract Chemkin II data into a friendlier format echo "# Time [s] Temperature [K]" > chemkinII diff --git a/tutorials/combustion/chemFoam/h2/Allclean b/tutorials/combustion/chemFoam/h2/Allclean index 493b6b3b01..e3dbcd5a51 100755 --- a/tutorials/combustion/chemFoam/h2/Allclean +++ b/tutorials/combustion/chemFoam/h2/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/chemFoam/h2/Allrun b/tutorials/combustion/chemFoam/h2/Allrun index de77cb7d56..74a0f0ac4e 100755 --- a/tutorials/combustion/chemFoam/h2/Allrun +++ b/tutorials/combustion/chemFoam/h2/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/chemFoam/h2/validation/Allrun b/tutorials/combustion/chemFoam/h2/validation/Allrun index 041628b097..7bfa68321e 100755 --- a/tutorials/combustion/chemFoam/h2/validation/Allrun +++ b/tutorials/combustion/chemFoam/h2/validation/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory # Extract Chemkin II data into a friendlier format echo "# Time [s] Temperature [K]" > chemkinII diff --git a/tutorials/combustion/chemFoam/ic8h18/Allclean b/tutorials/combustion/chemFoam/ic8h18/Allclean index 493b6b3b01..e3dbcd5a51 100755 --- a/tutorials/combustion/chemFoam/ic8h18/Allclean +++ b/tutorials/combustion/chemFoam/ic8h18/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/chemFoam/ic8h18/Allrun b/tutorials/combustion/chemFoam/ic8h18/Allrun index de77cb7d56..74a0f0ac4e 100755 --- a/tutorials/combustion/chemFoam/ic8h18/Allrun +++ b/tutorials/combustion/chemFoam/ic8h18/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/chemFoam/ic8h18/validation/Allrun b/tutorials/combustion/chemFoam/ic8h18/validation/Allrun index 041628b097..7bfa68321e 100755 --- a/tutorials/combustion/chemFoam/ic8h18/validation/Allrun +++ b/tutorials/combustion/chemFoam/ic8h18/validation/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory # Extract Chemkin II data into a friendlier format echo "# Time [s] Temperature [K]" > chemkinII diff --git a/tutorials/combustion/chemFoam/ic8h18_TDAC/Allclean b/tutorials/combustion/chemFoam/ic8h18_TDAC/Allclean index 493b6b3b01..e3dbcd5a51 100755 --- a/tutorials/combustion/chemFoam/ic8h18_TDAC/Allclean +++ b/tutorials/combustion/chemFoam/ic8h18_TDAC/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/chemFoam/ic8h18_TDAC/Allrun b/tutorials/combustion/chemFoam/ic8h18_TDAC/Allrun index de77cb7d56..74a0f0ac4e 100755 --- a/tutorials/combustion/chemFoam/ic8h18_TDAC/Allrun +++ b/tutorials/combustion/chemFoam/ic8h18_TDAC/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/chemFoam/ic8h18_TDAC/validation/Allrun b/tutorials/combustion/chemFoam/ic8h18_TDAC/validation/Allrun index 041628b097..7bfa68321e 100755 --- a/tutorials/combustion/chemFoam/ic8h18_TDAC/validation/Allrun +++ b/tutorials/combustion/chemFoam/ic8h18_TDAC/validation/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory # Extract Chemkin II data into a friendlier format echo "# Time [s] Temperature [K]" > chemkinII diff --git a/tutorials/combustion/chemFoam/nc7h16/Allclean b/tutorials/combustion/chemFoam/nc7h16/Allclean index 493b6b3b01..e3dbcd5a51 100755 --- a/tutorials/combustion/chemFoam/nc7h16/Allclean +++ b/tutorials/combustion/chemFoam/nc7h16/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/chemFoam/nc7h16/Allrun b/tutorials/combustion/chemFoam/nc7h16/Allrun index de77cb7d56..74a0f0ac4e 100755 --- a/tutorials/combustion/chemFoam/nc7h16/Allrun +++ b/tutorials/combustion/chemFoam/nc7h16/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/chemFoam/nc7h16/validation/Allrun b/tutorials/combustion/chemFoam/nc7h16/validation/Allrun index 041628b097..7bfa68321e 100755 --- a/tutorials/combustion/chemFoam/nc7h16/validation/Allrun +++ b/tutorials/combustion/chemFoam/nc7h16/validation/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory # Extract Chemkin II data into a friendlier format echo "# Time [s] Temperature [K]" > chemkinII diff --git a/tutorials/combustion/fireFoam/LES/compartmentFire/Allclean b/tutorials/combustion/fireFoam/LES/compartmentFire/Allclean index ae1a8004e7..f5fa1c6732 100755 --- a/tutorials/combustion/fireFoam/LES/compartmentFire/Allclean +++ b/tutorials/combustion/fireFoam/LES/compartmentFire/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/fireFoam/LES/compartmentFire/Allrun b/tutorials/combustion/fireFoam/LES/compartmentFire/Allrun index 6468b3642b..19638fb3b4 100755 --- a/tutorials/combustion/fireFoam/LES/compartmentFire/Allrun +++ b/tutorials/combustion/fireFoam/LES/compartmentFire/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/Allclean b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/Allclean index 3dab827afb..826cf0abe1 100755 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/Allclean +++ b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/Allrun b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/Allrun index e078e04b72..1688cc5e92 100755 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/Allrun +++ b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/Allclean b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/Allclean index d26961787e..91e0bf1bed 100755 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/Allclean +++ b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/Allrun b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/Allrun index 409b6d85e4..84a8240c69 100755 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/Allrun +++ b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/fireFoam/LES/simplePMMApanel/Allclean b/tutorials/combustion/fireFoam/LES/simplePMMApanel/Allclean index f627b3aadb..4f396d99b3 100755 --- a/tutorials/combustion/fireFoam/LES/simplePMMApanel/Allclean +++ b/tutorials/combustion/fireFoam/LES/simplePMMApanel/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/fireFoam/LES/simplePMMApanel/Allrun b/tutorials/combustion/fireFoam/LES/simplePMMApanel/Allrun index 51d8f67927..f50fd1bc5b 100755 --- a/tutorials/combustion/fireFoam/LES/simplePMMApanel/Allrun +++ b/tutorials/combustion/fireFoam/LES/simplePMMApanel/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/fireFoam/LES/smallPoolFire2D/Allclean b/tutorials/combustion/fireFoam/LES/smallPoolFire2D/Allclean index 08eea3e9c3..37932fd86c 100755 --- a/tutorials/combustion/fireFoam/LES/smallPoolFire2D/Allclean +++ b/tutorials/combustion/fireFoam/LES/smallPoolFire2D/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/fireFoam/LES/smallPoolFire2D/Allrun b/tutorials/combustion/fireFoam/LES/smallPoolFire2D/Allrun index c228888491..8880c43aa2 100755 --- a/tutorials/combustion/fireFoam/LES/smallPoolFire2D/Allrun +++ b/tutorials/combustion/fireFoam/LES/smallPoolFire2D/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/fireFoam/LES/smallPoolFire3D/Allclean b/tutorials/combustion/fireFoam/LES/smallPoolFire3D/Allclean index 08eea3e9c3..37932fd86c 100755 --- a/tutorials/combustion/fireFoam/LES/smallPoolFire3D/Allclean +++ b/tutorials/combustion/fireFoam/LES/smallPoolFire3D/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/fireFoam/LES/smallPoolFire3D/Allrun b/tutorials/combustion/fireFoam/LES/smallPoolFire3D/Allrun index c2edaf682d..93d1566e74 100755 --- a/tutorials/combustion/fireFoam/LES/smallPoolFire3D/Allrun +++ b/tutorials/combustion/fireFoam/LES/smallPoolFire3D/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/reactingFoam/RAS/DLR_A_LTS/Allclean b/tutorials/combustion/reactingFoam/RAS/DLR_A_LTS/Allclean index 3c2c8bd235..9d24095810 100755 --- a/tutorials/combustion/reactingFoam/RAS/DLR_A_LTS/Allclean +++ b/tutorials/combustion/reactingFoam/RAS/DLR_A_LTS/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/reactingFoam/RAS/DLR_A_LTS/Allrun b/tutorials/combustion/reactingFoam/RAS/DLR_A_LTS/Allrun index 4634f7856b..b1a6fde3c3 100755 --- a/tutorials/combustion/reactingFoam/RAS/DLR_A_LTS/Allrun +++ b/tutorials/combustion/reactingFoam/RAS/DLR_A_LTS/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/reactingFoam/RAS/SandiaD_LTS/Allclean b/tutorials/combustion/reactingFoam/RAS/SandiaD_LTS/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/combustion/reactingFoam/RAS/SandiaD_LTS/Allclean +++ b/tutorials/combustion/reactingFoam/RAS/SandiaD_LTS/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/reactingFoam/RAS/SandiaD_LTS/Allrun b/tutorials/combustion/reactingFoam/RAS/SandiaD_LTS/Allrun index 95da925a16..d8f7f9f144 100755 --- a/tutorials/combustion/reactingFoam/RAS/SandiaD_LTS/Allrun +++ b/tutorials/combustion/reactingFoam/RAS/SandiaD_LTS/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/reactingFoam/RAS/chokedNozzle/Allclean b/tutorials/combustion/reactingFoam/RAS/chokedNozzle/Allclean index e8557c2554..426e7ad42e 100755 --- a/tutorials/combustion/reactingFoam/RAS/chokedNozzle/Allclean +++ b/tutorials/combustion/reactingFoam/RAS/chokedNozzle/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/reactingFoam/RAS/chokedNozzle/Allrun b/tutorials/combustion/reactingFoam/RAS/chokedNozzle/Allrun index 8501663548..297921fdf1 100755 --- a/tutorials/combustion/reactingFoam/RAS/chokedNozzle/Allrun +++ b/tutorials/combustion/reactingFoam/RAS/chokedNozzle/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/reactingFoam/RAS/membrane/Allclean b/tutorials/combustion/reactingFoam/RAS/membrane/Allclean index 7e32dc15f4..d018928a0a 100755 --- a/tutorials/combustion/reactingFoam/RAS/membrane/Allclean +++ b/tutorials/combustion/reactingFoam/RAS/membrane/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/reactingFoam/RAS/membrane/Allrun b/tutorials/combustion/reactingFoam/RAS/membrane/Allrun index 53ed8ae3ce..878fc3d499 100755 --- a/tutorials/combustion/reactingFoam/RAS/membrane/Allrun +++ b/tutorials/combustion/reactingFoam/RAS/membrane/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/overRhoPimpleDyMFoam/twoSimpleRotors/Allclean b/tutorials/compressible/overRhoPimpleDyMFoam/twoSimpleRotors/Allclean index 7a3d92a9d3..385a30a2f2 100755 --- a/tutorials/compressible/overRhoPimpleDyMFoam/twoSimpleRotors/Allclean +++ b/tutorials/compressible/overRhoPimpleDyMFoam/twoSimpleRotors/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/overRhoPimpleDyMFoam/twoSimpleRotors/Allrun b/tutorials/compressible/overRhoPimpleDyMFoam/twoSimpleRotors/Allrun index 68d65d6908..4e50485939 100755 --- a/tutorials/compressible/overRhoPimpleDyMFoam/twoSimpleRotors/Allrun +++ b/tutorials/compressible/overRhoPimpleDyMFoam/twoSimpleRotors/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/overRhoPimpleDyMFoam/twoSimpleRotors/Allrun.pre b/tutorials/compressible/overRhoPimpleDyMFoam/twoSimpleRotors/Allrun.pre index 308bbee9fd..c0a6663fb9 100755 --- a/tutorials/compressible/overRhoPimpleDyMFoam/twoSimpleRotors/Allrun.pre +++ b/tutorials/compressible/overRhoPimpleDyMFoam/twoSimpleRotors/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/overRhoSimpleFoam/hotCylinder/Allclean b/tutorials/compressible/overRhoSimpleFoam/hotCylinder/Allclean index e3d1054040..d68987d2f2 100755 --- a/tutorials/compressible/overRhoSimpleFoam/hotCylinder/Allclean +++ b/tutorials/compressible/overRhoSimpleFoam/hotCylinder/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory # An extruded mesh around cylinder (cd cylinderAndBackground && ./Allclean) diff --git a/tutorials/compressible/overRhoSimpleFoam/hotCylinder/Allrun b/tutorials/compressible/overRhoSimpleFoam/hotCylinder/Allrun index 1f9e19cfa2..7a8cabf161 100755 --- a/tutorials/compressible/overRhoSimpleFoam/hotCylinder/Allrun +++ b/tutorials/compressible/overRhoSimpleFoam/hotCylinder/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/overRhoSimpleFoam/hotCylinder/Allrun.pre b/tutorials/compressible/overRhoSimpleFoam/hotCylinder/Allrun.pre index a16bf252a5..2822948074 100755 --- a/tutorials/compressible/overRhoSimpleFoam/hotCylinder/Allrun.pre +++ b/tutorials/compressible/overRhoSimpleFoam/hotCylinder/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/overRhoSimpleFoam/hotCylinder/cylinderAndBackground/Allclean b/tutorials/compressible/overRhoSimpleFoam/hotCylinder/cylinderAndBackground/Allclean index 7a3d92a9d3..385a30a2f2 100755 --- a/tutorials/compressible/overRhoSimpleFoam/hotCylinder/cylinderAndBackground/Allclean +++ b/tutorials/compressible/overRhoSimpleFoam/hotCylinder/cylinderAndBackground/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/overRhoSimpleFoam/hotCylinder/cylinderAndBackground/Allrun b/tutorials/compressible/overRhoSimpleFoam/hotCylinder/cylinderAndBackground/Allrun index b6b22e10a9..8c92b17f92 100755 --- a/tutorials/compressible/overRhoSimpleFoam/hotCylinder/cylinderAndBackground/Allrun +++ b/tutorials/compressible/overRhoSimpleFoam/hotCylinder/cylinderAndBackground/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/overRhoSimpleFoam/hotCylinder/cylinderAndBackground/Allrun.pre b/tutorials/compressible/overRhoSimpleFoam/hotCylinder/cylinderAndBackground/Allrun.pre index 82380faff0..dcf0a0a3a0 100755 --- a/tutorials/compressible/overRhoSimpleFoam/hotCylinder/cylinderAndBackground/Allrun.pre +++ b/tutorials/compressible/overRhoSimpleFoam/hotCylinder/cylinderAndBackground/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/overRhoSimpleFoam/hotCylinder/cylinderMesh/Allrun.pre b/tutorials/compressible/overRhoSimpleFoam/hotCylinder/cylinderMesh/Allrun.pre index 020fb73544..189ec9201d 100755 --- a/tutorials/compressible/overRhoSimpleFoam/hotCylinder/cylinderMesh/Allrun.pre +++ b/tutorials/compressible/overRhoSimpleFoam/hotCylinder/cylinderMesh/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoCentralFoam/biconic25-55Run35/Allclean b/tutorials/compressible/rhoCentralFoam/biconic25-55Run35/Allclean index 98dd91e627..a2847b2b49 100755 --- a/tutorials/compressible/rhoCentralFoam/biconic25-55Run35/Allclean +++ b/tutorials/compressible/rhoCentralFoam/biconic25-55Run35/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoCentralFoam/biconic25-55Run35/Allrun b/tutorials/compressible/rhoCentralFoam/biconic25-55Run35/Allrun index 5f74b6dd2a..9c11ecbf09 100755 --- a/tutorials/compressible/rhoCentralFoam/biconic25-55Run35/Allrun +++ b/tutorials/compressible/rhoCentralFoam/biconic25-55Run35/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoCentralFoam/biconic25-55Run35/sampleCone b/tutorials/compressible/rhoCentralFoam/biconic25-55Run35/sampleCone index a07cffaf68..11bb015c87 100755 --- a/tutorials/compressible/rhoCentralFoam/biconic25-55Run35/sampleCone +++ b/tutorials/compressible/rhoCentralFoam/biconic25-55Run35/sampleCone @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory # # FUNCTIONS diff --git a/tutorials/compressible/rhoCentralFoam/shockTube/Allclean b/tutorials/compressible/rhoCentralFoam/shockTube/Allclean index 97d23e4226..dd96be9c32 100755 --- a/tutorials/compressible/rhoCentralFoam/shockTube/Allclean +++ b/tutorials/compressible/rhoCentralFoam/shockTube/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoCentralFoam/shockTube/Allrun b/tutorials/compressible/rhoCentralFoam/shockTube/Allrun index eb149a1d05..01eb91b884 100755 --- a/tutorials/compressible/rhoCentralFoam/shockTube/Allrun +++ b/tutorials/compressible/rhoCentralFoam/shockTube/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoPimpleAdiabaticFoam/rutlandVortex2D/Allclean b/tutorials/compressible/rhoPimpleAdiabaticFoam/rutlandVortex2D/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/compressible/rhoPimpleAdiabaticFoam/rutlandVortex2D/Allclean +++ b/tutorials/compressible/rhoPimpleAdiabaticFoam/rutlandVortex2D/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoPimpleAdiabaticFoam/rutlandVortex2D/Allrun b/tutorials/compressible/rhoPimpleAdiabaticFoam/rutlandVortex2D/Allrun index 31795aa1f8..8bd99d3333 100755 --- a/tutorials/compressible/rhoPimpleAdiabaticFoam/rutlandVortex2D/Allrun +++ b/tutorials/compressible/rhoPimpleAdiabaticFoam/rutlandVortex2D/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoPimpleFoam/RAS/aerofoilNACA0012/Allclean b/tutorials/compressible/rhoPimpleFoam/RAS/aerofoilNACA0012/Allclean index fdef615a9e..f0255f7f4f 100755 --- a/tutorials/compressible/rhoPimpleFoam/RAS/aerofoilNACA0012/Allclean +++ b/tutorials/compressible/rhoPimpleFoam/RAS/aerofoilNACA0012/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoPimpleFoam/RAS/aerofoilNACA0012/Allrun b/tutorials/compressible/rhoPimpleFoam/RAS/aerofoilNACA0012/Allrun index e8072ad733..198bf78850 100755 --- a/tutorials/compressible/rhoPimpleFoam/RAS/aerofoilNACA0012/Allrun +++ b/tutorials/compressible/rhoPimpleFoam/RAS/aerofoilNACA0012/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoPimpleFoam/RAS/angledDuct/Allrun b/tutorials/compressible/rhoPimpleFoam/RAS/angledDuct/Allrun index 287801e89f..8e142f906c 100755 --- a/tutorials/compressible/rhoPimpleFoam/RAS/angledDuct/Allrun +++ b/tutorials/compressible/rhoPimpleFoam/RAS/angledDuct/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoPimpleFoam/RAS/angledDuctLTS/Allrun b/tutorials/compressible/rhoPimpleFoam/RAS/angledDuctLTS/Allrun index 287801e89f..8e142f906c 100755 --- a/tutorials/compressible/rhoPimpleFoam/RAS/angledDuctLTS/Allrun +++ b/tutorials/compressible/rhoPimpleFoam/RAS/angledDuctLTS/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoPimpleFoam/RAS/annularThermalMixer/Allclean b/tutorials/compressible/rhoPimpleFoam/RAS/annularThermalMixer/Allclean index 31a2d41d8e..e44a3f32fa 100755 --- a/tutorials/compressible/rhoPimpleFoam/RAS/annularThermalMixer/Allclean +++ b/tutorials/compressible/rhoPimpleFoam/RAS/annularThermalMixer/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoPimpleFoam/RAS/annularThermalMixer/Allrun b/tutorials/compressible/rhoPimpleFoam/RAS/annularThermalMixer/Allrun index c71d337979..c63b8a998a 100755 --- a/tutorials/compressible/rhoPimpleFoam/RAS/annularThermalMixer/Allrun +++ b/tutorials/compressible/rhoPimpleFoam/RAS/annularThermalMixer/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoPimpleFoam/RAS/externalCoupledSquareBendLiq/Allclean b/tutorials/compressible/rhoPimpleFoam/RAS/externalCoupledSquareBendLiq/Allclean index e1897d73de..beea4126e1 100755 --- a/tutorials/compressible/rhoPimpleFoam/RAS/externalCoupledSquareBendLiq/Allclean +++ b/tutorials/compressible/rhoPimpleFoam/RAS/externalCoupledSquareBendLiq/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoPimpleFoam/RAS/externalCoupledSquareBendLiq/Allrun b/tutorials/compressible/rhoPimpleFoam/RAS/externalCoupledSquareBendLiq/Allrun index ac35be70ab..8debec2d18 100755 --- a/tutorials/compressible/rhoPimpleFoam/RAS/externalCoupledSquareBendLiq/Allrun +++ b/tutorials/compressible/rhoPimpleFoam/RAS/externalCoupledSquareBendLiq/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoPimpleFoam/RAS/externalCoupledSquareBendLiq/Allrun.pre b/tutorials/compressible/rhoPimpleFoam/RAS/externalCoupledSquareBendLiq/Allrun.pre index 9afe0cedc2..6966dbdfc9 100755 --- a/tutorials/compressible/rhoPimpleFoam/RAS/externalCoupledSquareBendLiq/Allrun.pre +++ b/tutorials/compressible/rhoPimpleFoam/RAS/externalCoupledSquareBendLiq/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoPimpleFoam/RAS/externalCoupledSquareBendLiq/externalSolver b/tutorials/compressible/rhoPimpleFoam/RAS/externalCoupledSquareBendLiq/externalSolver index 1ef2b34711..90eaf2de1c 100755 --- a/tutorials/compressible/rhoPimpleFoam/RAS/externalCoupledSquareBendLiq/externalSolver +++ b/tutorials/compressible/rhoPimpleFoam/RAS/externalCoupledSquareBendLiq/externalSolver @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoPimpleFoam/RAS/mixerVessel2D/Allrun b/tutorials/compressible/rhoPimpleFoam/RAS/mixerVessel2D/Allrun index b069c38b3f..d5b4b35cc2 100755 --- a/tutorials/compressible/rhoPimpleFoam/RAS/mixerVessel2D/Allrun +++ b/tutorials/compressible/rhoPimpleFoam/RAS/mixerVessel2D/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoPimpleFoam/RAS/mixerVessel2D/makeMesh b/tutorials/compressible/rhoPimpleFoam/RAS/mixerVessel2D/makeMesh index 8d6f4d11eb..7239a755e2 100755 --- a/tutorials/compressible/rhoPimpleFoam/RAS/mixerVessel2D/makeMesh +++ b/tutorials/compressible/rhoPimpleFoam/RAS/mixerVessel2D/makeMesh @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoPimpleFoam/laminar/helmholtzResonance/Allclean b/tutorials/compressible/rhoPimpleFoam/laminar/helmholtzResonance/Allclean index fa8a8dfc8c..fedbc79f8b 100755 --- a/tutorials/compressible/rhoPimpleFoam/laminar/helmholtzResonance/Allclean +++ b/tutorials/compressible/rhoPimpleFoam/laminar/helmholtzResonance/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoPimpleFoam/laminar/helmholtzResonance/Allrun b/tutorials/compressible/rhoPimpleFoam/laminar/helmholtzResonance/Allrun index 435dafd769..1585a049a0 100755 --- a/tutorials/compressible/rhoPimpleFoam/laminar/helmholtzResonance/Allrun +++ b/tutorials/compressible/rhoPimpleFoam/laminar/helmholtzResonance/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ @@ -13,10 +13,10 @@ run() ln -s blockMeshDict.${1}Boundary blockMeshDict.caseBoundary ) - cloneCase . ${1} + cloneCase . "$1" ( - cd ${1} + cd "$1" || exit runApplication blockMesh runApplication decomposePar runParallel $(getApplication) diff --git a/tutorials/compressible/rhoPimpleFoam/laminar/sineWaveDamping/Allclean b/tutorials/compressible/rhoPimpleFoam/laminar/sineWaveDamping/Allclean index e8557c2554..426e7ad42e 100755 --- a/tutorials/compressible/rhoPimpleFoam/laminar/sineWaveDamping/Allclean +++ b/tutorials/compressible/rhoPimpleFoam/laminar/sineWaveDamping/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoPimpleFoam/laminar/sineWaveDamping/Allrun b/tutorials/compressible/rhoPimpleFoam/laminar/sineWaveDamping/Allrun index 088ddcd325..9504dda1b3 100755 --- a/tutorials/compressible/rhoPimpleFoam/laminar/sineWaveDamping/Allrun +++ b/tutorials/compressible/rhoPimpleFoam/laminar/sineWaveDamping/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoPorousSimpleFoam/angledDuct/explicit/Allclean b/tutorials/compressible/rhoPorousSimpleFoam/angledDuct/explicit/Allclean index 90be62e7b4..8d1dd92f19 100755 --- a/tutorials/compressible/rhoPorousSimpleFoam/angledDuct/explicit/Allclean +++ b/tutorials/compressible/rhoPorousSimpleFoam/angledDuct/explicit/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoPorousSimpleFoam/angledDuct/explicit/Allrun b/tutorials/compressible/rhoPorousSimpleFoam/angledDuct/explicit/Allrun index 84cd354497..e73a311ec5 100755 --- a/tutorials/compressible/rhoPorousSimpleFoam/angledDuct/explicit/Allrun +++ b/tutorials/compressible/rhoPorousSimpleFoam/angledDuct/explicit/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoPorousSimpleFoam/angledDuct/implicit/Allclean b/tutorials/compressible/rhoPorousSimpleFoam/angledDuct/implicit/Allclean index 90be62e7b4..8d1dd92f19 100755 --- a/tutorials/compressible/rhoPorousSimpleFoam/angledDuct/implicit/Allclean +++ b/tutorials/compressible/rhoPorousSimpleFoam/angledDuct/implicit/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoPorousSimpleFoam/angledDuct/implicit/Allrun b/tutorials/compressible/rhoPorousSimpleFoam/angledDuct/implicit/Allrun index 84cd354497..e73a311ec5 100755 --- a/tutorials/compressible/rhoPorousSimpleFoam/angledDuct/implicit/Allrun +++ b/tutorials/compressible/rhoPorousSimpleFoam/angledDuct/implicit/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoSimpleFoam/aerofoilNACA0012/Allclean b/tutorials/compressible/rhoSimpleFoam/aerofoilNACA0012/Allclean index fdef615a9e..f0255f7f4f 100755 --- a/tutorials/compressible/rhoSimpleFoam/aerofoilNACA0012/Allclean +++ b/tutorials/compressible/rhoSimpleFoam/aerofoilNACA0012/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoSimpleFoam/aerofoilNACA0012/Allrun b/tutorials/compressible/rhoSimpleFoam/aerofoilNACA0012/Allrun index e8072ad733..198bf78850 100755 --- a/tutorials/compressible/rhoSimpleFoam/aerofoilNACA0012/Allrun +++ b/tutorials/compressible/rhoSimpleFoam/aerofoilNACA0012/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoSimpleFoam/angledDuctExplicitFixedCoeff/Allrun b/tutorials/compressible/rhoSimpleFoam/angledDuctExplicitFixedCoeff/Allrun index 287801e89f..8e142f906c 100755 --- a/tutorials/compressible/rhoSimpleFoam/angledDuctExplicitFixedCoeff/Allrun +++ b/tutorials/compressible/rhoSimpleFoam/angledDuctExplicitFixedCoeff/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoSimpleFoam/gasMixing/injectorPipe/Allclean b/tutorials/compressible/rhoSimpleFoam/gasMixing/injectorPipe/Allclean index 6aff6a9109..5be4ba1d39 100755 --- a/tutorials/compressible/rhoSimpleFoam/gasMixing/injectorPipe/Allclean +++ b/tutorials/compressible/rhoSimpleFoam/gasMixing/injectorPipe/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoSimpleFoam/gasMixing/injectorPipe/Allrun b/tutorials/compressible/rhoSimpleFoam/gasMixing/injectorPipe/Allrun index 08d4a2aaf2..325fd0d8a9 100755 --- a/tutorials/compressible/rhoSimpleFoam/gasMixing/injectorPipe/Allrun +++ b/tutorials/compressible/rhoSimpleFoam/gasMixing/injectorPipe/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoSimpleFoam/gasMixing/injectorPipe/Allrun.mesh b/tutorials/compressible/rhoSimpleFoam/gasMixing/injectorPipe/Allrun.mesh index 433eabf62d..1417d9b0f2 100755 --- a/tutorials/compressible/rhoSimpleFoam/gasMixing/injectorPipe/Allrun.mesh +++ b/tutorials/compressible/rhoSimpleFoam/gasMixing/injectorPipe/Allrun.mesh @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/sonicFoam/RAS/nacaAirfoil/Allclean b/tutorials/compressible/sonicFoam/RAS/nacaAirfoil/Allclean index 9eb8dc8d6e..e334dcabc8 100755 --- a/tutorials/compressible/sonicFoam/RAS/nacaAirfoil/Allclean +++ b/tutorials/compressible/sonicFoam/RAS/nacaAirfoil/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/sonicFoam/RAS/nacaAirfoil/Allrun b/tutorials/compressible/sonicFoam/RAS/nacaAirfoil/Allrun index fb0d4b92c9..1c65a58f5b 100755 --- a/tutorials/compressible/sonicFoam/RAS/nacaAirfoil/Allrun +++ b/tutorials/compressible/sonicFoam/RAS/nacaAirfoil/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/sonicFoam/laminar/shockTube/Allclean b/tutorials/compressible/sonicFoam/laminar/shockTube/Allclean index 97d23e4226..dd96be9c32 100755 --- a/tutorials/compressible/sonicFoam/laminar/shockTube/Allclean +++ b/tutorials/compressible/sonicFoam/laminar/shockTube/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/sonicFoam/laminar/shockTube/Allrun b/tutorials/compressible/sonicFoam/laminar/shockTube/Allrun index b9d4cf52b4..3c3fda4014 100755 --- a/tutorials/compressible/sonicFoam/laminar/shockTube/Allrun +++ b/tutorials/compressible/sonicFoam/laminar/shockTube/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/sonicLiquidFoam/Allclean b/tutorials/compressible/sonicLiquidFoam/Allclean index c29550da8c..388362f33d 100755 --- a/tutorials/compressible/sonicLiquidFoam/Allclean +++ b/tutorials/compressible/sonicLiquidFoam/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/sonicLiquidFoam/Allrun b/tutorials/compressible/sonicLiquidFoam/Allrun index 5783f10592..dfe3145627 100755 --- a/tutorials/compressible/sonicLiquidFoam/Allrun +++ b/tutorials/compressible/sonicLiquidFoam/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/discreteMethods/dsmcFoam/freeSpacePeriodic/Allclean b/tutorials/discreteMethods/dsmcFoam/freeSpacePeriodic/Allclean index df4ebb1f55..be79872792 100755 --- a/tutorials/discreteMethods/dsmcFoam/freeSpacePeriodic/Allclean +++ b/tutorials/discreteMethods/dsmcFoam/freeSpacePeriodic/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/discreteMethods/dsmcFoam/freeSpacePeriodic/Allrun b/tutorials/discreteMethods/dsmcFoam/freeSpacePeriodic/Allrun index 19bf00a902..e3a5f21d92 100755 --- a/tutorials/discreteMethods/dsmcFoam/freeSpacePeriodic/Allrun +++ b/tutorials/discreteMethods/dsmcFoam/freeSpacePeriodic/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/discreteMethods/dsmcFoam/freeSpaceStream/Allclean b/tutorials/discreteMethods/dsmcFoam/freeSpaceStream/Allclean index df4ebb1f55..be79872792 100755 --- a/tutorials/discreteMethods/dsmcFoam/freeSpaceStream/Allclean +++ b/tutorials/discreteMethods/dsmcFoam/freeSpaceStream/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/discreteMethods/dsmcFoam/freeSpaceStream/Allrun b/tutorials/discreteMethods/dsmcFoam/freeSpaceStream/Allrun index 19bf00a902..e3a5f21d92 100755 --- a/tutorials/discreteMethods/dsmcFoam/freeSpaceStream/Allrun +++ b/tutorials/discreteMethods/dsmcFoam/freeSpaceStream/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/discreteMethods/dsmcFoam/supersonicCorner/Allclean b/tutorials/discreteMethods/dsmcFoam/supersonicCorner/Allclean index df4ebb1f55..be79872792 100755 --- a/tutorials/discreteMethods/dsmcFoam/supersonicCorner/Allclean +++ b/tutorials/discreteMethods/dsmcFoam/supersonicCorner/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/discreteMethods/dsmcFoam/supersonicCorner/Allrun b/tutorials/discreteMethods/dsmcFoam/supersonicCorner/Allrun index 81fa228b7c..fec6332440 100755 --- a/tutorials/discreteMethods/dsmcFoam/supersonicCorner/Allrun +++ b/tutorials/discreteMethods/dsmcFoam/supersonicCorner/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/discreteMethods/dsmcFoam/wedge15Ma5/Allclean b/tutorials/discreteMethods/dsmcFoam/wedge15Ma5/Allclean index df4ebb1f55..be79872792 100755 --- a/tutorials/discreteMethods/dsmcFoam/wedge15Ma5/Allclean +++ b/tutorials/discreteMethods/dsmcFoam/wedge15Ma5/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/discreteMethods/dsmcFoam/wedge15Ma5/Allrun b/tutorials/discreteMethods/dsmcFoam/wedge15Ma5/Allrun index 81fa228b7c..fec6332440 100755 --- a/tutorials/discreteMethods/dsmcFoam/wedge15Ma5/Allrun +++ b/tutorials/discreteMethods/dsmcFoam/wedge15Ma5/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/discreteMethods/molecularDynamics/mdEquilibrationFoam/periodicCubeArgon/Allclean b/tutorials/discreteMethods/molecularDynamics/mdEquilibrationFoam/periodicCubeArgon/Allclean index d339fd915d..9ee80cc641 100755 --- a/tutorials/discreteMethods/molecularDynamics/mdEquilibrationFoam/periodicCubeArgon/Allclean +++ b/tutorials/discreteMethods/molecularDynamics/mdEquilibrationFoam/periodicCubeArgon/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/discreteMethods/molecularDynamics/mdEquilibrationFoam/periodicCubeArgon/Allrun b/tutorials/discreteMethods/molecularDynamics/mdEquilibrationFoam/periodicCubeArgon/Allrun index f429da9ee6..b506967a8e 100755 --- a/tutorials/discreteMethods/molecularDynamics/mdEquilibrationFoam/periodicCubeArgon/Allrun +++ b/tutorials/discreteMethods/molecularDynamics/mdEquilibrationFoam/periodicCubeArgon/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/discreteMethods/molecularDynamics/mdEquilibrationFoam/periodicCubeWater/Allclean b/tutorials/discreteMethods/molecularDynamics/mdEquilibrationFoam/periodicCubeWater/Allclean index de4a6f9529..6532fedd14 100755 --- a/tutorials/discreteMethods/molecularDynamics/mdEquilibrationFoam/periodicCubeWater/Allclean +++ b/tutorials/discreteMethods/molecularDynamics/mdEquilibrationFoam/periodicCubeWater/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/discreteMethods/molecularDynamics/mdEquilibrationFoam/periodicCubeWater/Allrun b/tutorials/discreteMethods/molecularDynamics/mdEquilibrationFoam/periodicCubeWater/Allrun index f429da9ee6..b506967a8e 100755 --- a/tutorials/discreteMethods/molecularDynamics/mdEquilibrationFoam/periodicCubeWater/Allrun +++ b/tutorials/discreteMethods/molecularDynamics/mdEquilibrationFoam/periodicCubeWater/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/discreteMethods/molecularDynamics/mdFoam/nanoNozzle/Allclean b/tutorials/discreteMethods/molecularDynamics/mdFoam/nanoNozzle/Allclean index 94302fe36d..4828f169d4 100755 --- a/tutorials/discreteMethods/molecularDynamics/mdFoam/nanoNozzle/Allclean +++ b/tutorials/discreteMethods/molecularDynamics/mdFoam/nanoNozzle/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/discreteMethods/molecularDynamics/mdFoam/nanoNozzle/Allrun b/tutorials/discreteMethods/molecularDynamics/mdFoam/nanoNozzle/Allrun index ce8fbd4a6e..fd91352cce 100755 --- a/tutorials/discreteMethods/molecularDynamics/mdFoam/nanoNozzle/Allrun +++ b/tutorials/discreteMethods/molecularDynamics/mdFoam/nanoNozzle/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/electromagnetics/mhdFoam/hartmann/Allclean b/tutorials/electromagnetics/mhdFoam/hartmann/Allclean index 98dd91e627..a2847b2b49 100755 --- a/tutorials/electromagnetics/mhdFoam/hartmann/Allclean +++ b/tutorials/electromagnetics/mhdFoam/hartmann/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/electromagnetics/mhdFoam/hartmann/Allrun b/tutorials/electromagnetics/mhdFoam/hartmann/Allrun index c9f32b5033..92701dca10 100755 --- a/tutorials/electromagnetics/mhdFoam/hartmann/Allrun +++ b/tutorials/electromagnetics/mhdFoam/hartmann/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/finiteArea/liquidFilmFoam/cylinder/Allclean b/tutorials/finiteArea/liquidFilmFoam/cylinder/Allclean index d7d93d437a..dd73fe4bce 100755 --- a/tutorials/finiteArea/liquidFilmFoam/cylinder/Allclean +++ b/tutorials/finiteArea/liquidFilmFoam/cylinder/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/finiteArea/liquidFilmFoam/cylinder/Allrun b/tutorials/finiteArea/liquidFilmFoam/cylinder/Allrun index f207549b26..85eceb74ad 100755 --- a/tutorials/finiteArea/liquidFilmFoam/cylinder/Allrun +++ b/tutorials/finiteArea/liquidFilmFoam/cylinder/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/finiteArea/sphereSurfactantFoam/sphereTransport/Allclean b/tutorials/finiteArea/sphereSurfactantFoam/sphereTransport/Allclean index 2bc5ca855b..3c8d4dbcd5 100755 --- a/tutorials/finiteArea/sphereSurfactantFoam/sphereTransport/Allclean +++ b/tutorials/finiteArea/sphereSurfactantFoam/sphereTransport/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/finiteArea/sphereSurfactantFoam/sphereTransport/Allrun b/tutorials/finiteArea/sphereSurfactantFoam/sphereTransport/Allrun index f85e00b1df..31738ff9dc 100755 --- a/tutorials/finiteArea/sphereSurfactantFoam/sphereTransport/Allrun +++ b/tutorials/finiteArea/sphereSurfactantFoam/sphereTransport/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/finiteArea/sphereSurfactantFoam/sphereTransport/Allrun-parallel b/tutorials/finiteArea/sphereSurfactantFoam/sphereTransport/Allrun-parallel index 8729c38a33..981f491d83 100755 --- a/tutorials/finiteArea/sphereSurfactantFoam/sphereTransport/Allrun-parallel +++ b/tutorials/finiteArea/sphereSurfactantFoam/sphereTransport/Allrun-parallel @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/finiteArea/surfactantFoam/planeTransport/Allclean b/tutorials/finiteArea/surfactantFoam/planeTransport/Allclean index d7d93d437a..dd73fe4bce 100755 --- a/tutorials/finiteArea/surfactantFoam/planeTransport/Allclean +++ b/tutorials/finiteArea/surfactantFoam/planeTransport/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/finiteArea/surfactantFoam/planeTransport/Allrun b/tutorials/finiteArea/surfactantFoam/planeTransport/Allrun index f207549b26..85eceb74ad 100755 --- a/tutorials/finiteArea/surfactantFoam/planeTransport/Allrun +++ b/tutorials/finiteArea/surfactantFoam/planeTransport/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/buoyantBoussinesqPimpleFoam/hotRoom/Allclean b/tutorials/heatTransfer/buoyantBoussinesqPimpleFoam/hotRoom/Allclean index 09f79e4c44..521df2b9c5 100755 --- a/tutorials/heatTransfer/buoyantBoussinesqPimpleFoam/hotRoom/Allclean +++ b/tutorials/heatTransfer/buoyantBoussinesqPimpleFoam/hotRoom/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/buoyantBoussinesqPimpleFoam/hotRoom/Allrun b/tutorials/heatTransfer/buoyantBoussinesqPimpleFoam/hotRoom/Allrun index 702f175a27..07b28c633f 100755 --- a/tutorials/heatTransfer/buoyantBoussinesqPimpleFoam/hotRoom/Allrun +++ b/tutorials/heatTransfer/buoyantBoussinesqPimpleFoam/hotRoom/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom/Allclean b/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom/Allclean index 09f79e4c44..521df2b9c5 100755 --- a/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom/Allclean +++ b/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom/Allrun b/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom/Allrun index 702f175a27..07b28c633f 100755 --- a/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom/Allrun +++ b/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/iglooWithFridges/Allrun b/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/iglooWithFridges/Allrun index d30df690ac..c94e89f2ff 100755 --- a/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/iglooWithFridges/Allrun +++ b/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/iglooWithFridges/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/buoyantPimpleFoam/hotRoom/Allclean b/tutorials/heatTransfer/buoyantPimpleFoam/hotRoom/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/heatTransfer/buoyantPimpleFoam/hotRoom/Allclean +++ b/tutorials/heatTransfer/buoyantPimpleFoam/hotRoom/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/buoyantPimpleFoam/hotRoom/Allrun b/tutorials/heatTransfer/buoyantPimpleFoam/hotRoom/Allrun index 869182a7b5..d3b817a565 100755 --- a/tutorials/heatTransfer/buoyantPimpleFoam/hotRoom/Allrun +++ b/tutorials/heatTransfer/buoyantPimpleFoam/hotRoom/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/buoyantPimpleFoam/thermocoupleTestCase/Allclean b/tutorials/heatTransfer/buoyantPimpleFoam/thermocoupleTestCase/Allclean index e8557c2554..426e7ad42e 100755 --- a/tutorials/heatTransfer/buoyantPimpleFoam/thermocoupleTestCase/Allclean +++ b/tutorials/heatTransfer/buoyantPimpleFoam/thermocoupleTestCase/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/buoyantPimpleFoam/thermocoupleTestCase/Allrun b/tutorials/heatTransfer/buoyantPimpleFoam/thermocoupleTestCase/Allrun index 088ddcd325..9504dda1b3 100755 --- a/tutorials/heatTransfer/buoyantPimpleFoam/thermocoupleTestCase/Allrun +++ b/tutorials/heatTransfer/buoyantPimpleFoam/thermocoupleTestCase/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/buoyantSimpleFoam/buoyantCavity/Allclean b/tutorials/heatTransfer/buoyantSimpleFoam/buoyantCavity/Allclean index e719ed465c..c7a926e48f 100755 --- a/tutorials/heatTransfer/buoyantSimpleFoam/buoyantCavity/Allclean +++ b/tutorials/heatTransfer/buoyantSimpleFoam/buoyantCavity/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/buoyantSimpleFoam/buoyantCavity/Allrun b/tutorials/heatTransfer/buoyantSimpleFoam/buoyantCavity/Allrun index 5b605dd467..be55fa3580 100755 --- a/tutorials/heatTransfer/buoyantSimpleFoam/buoyantCavity/Allrun +++ b/tutorials/heatTransfer/buoyantSimpleFoam/buoyantCavity/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/buoyantSimpleFoam/buoyantCavity/validation/createGraphs b/tutorials/heatTransfer/buoyantSimpleFoam/buoyantCavity/validation/createGraphs index a2e6bfe1d7..e5e11e92fb 100755 --- a/tutorials/heatTransfer/buoyantSimpleFoam/buoyantCavity/validation/createGraphs +++ b/tutorials/heatTransfer/buoyantSimpleFoam/buoyantCavity/validation/createGraphs @@ -33,7 +33,7 @@ # #------------------------------------------------------------------------------ -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory # Stop on first error set -e diff --git a/tutorials/heatTransfer/buoyantSimpleFoam/circuitBoardCooling/Allclean b/tutorials/heatTransfer/buoyantSimpleFoam/circuitBoardCooling/Allclean index 2907d2d9f7..ee9650d03e 100755 --- a/tutorials/heatTransfer/buoyantSimpleFoam/circuitBoardCooling/Allclean +++ b/tutorials/heatTransfer/buoyantSimpleFoam/circuitBoardCooling/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/buoyantSimpleFoam/circuitBoardCooling/Allrun b/tutorials/heatTransfer/buoyantSimpleFoam/circuitBoardCooling/Allrun index d6999403aa..f1039444dc 100755 --- a/tutorials/heatTransfer/buoyantSimpleFoam/circuitBoardCooling/Allrun +++ b/tutorials/heatTransfer/buoyantSimpleFoam/circuitBoardCooling/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/buoyantSimpleFoam/hotRadiationRoom/Allclean b/tutorials/heatTransfer/buoyantSimpleFoam/hotRadiationRoom/Allclean index e8557c2554..426e7ad42e 100755 --- a/tutorials/heatTransfer/buoyantSimpleFoam/hotRadiationRoom/Allclean +++ b/tutorials/heatTransfer/buoyantSimpleFoam/hotRadiationRoom/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/buoyantSimpleFoam/hotRadiationRoom/Allrun b/tutorials/heatTransfer/buoyantSimpleFoam/hotRadiationRoom/Allrun index 088ddcd325..9504dda1b3 100755 --- a/tutorials/heatTransfer/buoyantSimpleFoam/hotRadiationRoom/Allrun +++ b/tutorials/heatTransfer/buoyantSimpleFoam/hotRadiationRoom/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/buoyantSimpleFoam/hotRadiationRoomFvDOM/Allclean b/tutorials/heatTransfer/buoyantSimpleFoam/hotRadiationRoomFvDOM/Allclean index e8557c2554..426e7ad42e 100755 --- a/tutorials/heatTransfer/buoyantSimpleFoam/hotRadiationRoomFvDOM/Allclean +++ b/tutorials/heatTransfer/buoyantSimpleFoam/hotRadiationRoomFvDOM/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/buoyantSimpleFoam/hotRadiationRoomFvDOM/Allrun b/tutorials/heatTransfer/buoyantSimpleFoam/hotRadiationRoomFvDOM/Allrun index 088ddcd325..9504dda1b3 100755 --- a/tutorials/heatTransfer/buoyantSimpleFoam/hotRadiationRoomFvDOM/Allrun +++ b/tutorials/heatTransfer/buoyantSimpleFoam/hotRadiationRoomFvDOM/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/buoyantSimpleFoam/simpleCarSolarPanel/Allclean b/tutorials/heatTransfer/buoyantSimpleFoam/simpleCarSolarPanel/Allclean index f429ffa518..4449be882b 100755 --- a/tutorials/heatTransfer/buoyantSimpleFoam/simpleCarSolarPanel/Allclean +++ b/tutorials/heatTransfer/buoyantSimpleFoam/simpleCarSolarPanel/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/buoyantSimpleFoam/simpleCarSolarPanel/Allrun b/tutorials/heatTransfer/buoyantSimpleFoam/simpleCarSolarPanel/Allrun index 584ebb4d51..5a7a5fcd98 100755 --- a/tutorials/heatTransfer/buoyantSimpleFoam/simpleCarSolarPanel/Allrun +++ b/tutorials/heatTransfer/buoyantSimpleFoam/simpleCarSolarPanel/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/externalCoupledHeater/Allclean b/tutorials/heatTransfer/chtMultiRegionFoam/externalCoupledHeater/Allclean index 3c2e6a7a1b..0f430d66da 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/externalCoupledHeater/Allclean +++ b/tutorials/heatTransfer/chtMultiRegionFoam/externalCoupledHeater/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/externalCoupledHeater/Allrun b/tutorials/heatTransfer/chtMultiRegionFoam/externalCoupledHeater/Allrun index b9d898e314..ce73e2407e 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/externalCoupledHeater/Allrun +++ b/tutorials/heatTransfer/chtMultiRegionFoam/externalCoupledHeater/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/externalCoupledHeater/Allrun.pre b/tutorials/heatTransfer/chtMultiRegionFoam/externalCoupledHeater/Allrun.pre index 4c7b942d3c..891b2331d6 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/externalCoupledHeater/Allrun.pre +++ b/tutorials/heatTransfer/chtMultiRegionFoam/externalCoupledHeater/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/externalCoupledHeater/externalSolver b/tutorials/heatTransfer/chtMultiRegionFoam/externalCoupledHeater/externalSolver index 1e2af6cf8a..65e8a354e4 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/externalCoupledHeater/externalSolver +++ b/tutorials/heatTransfer/chtMultiRegionFoam/externalCoupledHeater/externalSolver @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ # Dummy external solver to communicate with OpenFOAM via externalCoupled diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allclean b/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allclean index 84885ff1f3..90611b740c 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allclean +++ b/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allrun b/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allrun index f1b440f686..b7831e4f6b 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allrun +++ b/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allrun-parallel b/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allrun-parallel index a979447d86..cffa6f3291 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allrun-parallel +++ b/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allrun-parallel @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allrun.pre b/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allrun.pre index 9c696a8f4c..03f7254cf2 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allrun.pre +++ b/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/Allclean b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/Allclean index 2e76195c16..2324fe88c1 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/Allclean +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/Allrun b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/Allrun index dbf94315cd..d5d83a85a5 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/Allrun +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/Allrun.pre b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/Allrun.pre index d447fa5ec0..897cbbb5bf 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/Allrun.pre +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/reverseBurner/Allclean b/tutorials/heatTransfer/chtMultiRegionFoam/reverseBurner/Allclean index 949547bf10..b6340ebb05 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/reverseBurner/Allclean +++ b/tutorials/heatTransfer/chtMultiRegionFoam/reverseBurner/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/reverseBurner/Allrun b/tutorials/heatTransfer/chtMultiRegionFoam/reverseBurner/Allrun index 68b6e13260..2c4acd42bd 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/reverseBurner/Allrun +++ b/tutorials/heatTransfer/chtMultiRegionFoam/reverseBurner/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/Allclean b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/Allclean index e2f0c3ea3c..6be0ec81b4 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/Allclean +++ b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/Allrun-parallel b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/Allrun-parallel index c74e82429e..ff22776abf 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/Allrun-parallel +++ b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/Allrun-parallel @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/Allrun-serial b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/Allrun-serial index cd20166ef6..86ec9d66ee 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/Allrun-serial +++ b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/Allrun-serial @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldCondensation/Allclean b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldCondensation/Allclean index cd6acf86f4..f3485b7a3e 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldCondensation/Allclean +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldCondensation/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldCondensation/Allrun b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldCondensation/Allrun index 79dabc1bea..a7e2611540 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldCondensation/Allrun +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldCondensation/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldCondensation/Allrun-parallel b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldCondensation/Allrun-parallel index 5fda76fc87..f4a3fab3a9 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldCondensation/Allrun-parallel +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldCondensation/Allrun-parallel @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allclean b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allclean index cd6acf86f4..f3485b7a3e 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allclean +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allrun b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allrun index 2a91080485..78d5debbe7 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allrun +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allrun-parallel b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allrun-parallel index 6e6ce7c873..b375784980 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allrun-parallel +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allrun-parallel @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allrun.pre b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allrun.pre index ef9eb777a1..8990b7f2fe 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allrun.pre +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/externalCoupledHeater/Allclean b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/externalCoupledHeater/Allclean index 458716d072..3742f56a80 100755 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/externalCoupledHeater/Allclean +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/externalCoupledHeater/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/externalCoupledHeater/Allrun b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/externalCoupledHeater/Allrun index b9d898e314..ce73e2407e 100755 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/externalCoupledHeater/Allrun +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/externalCoupledHeater/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/externalCoupledHeater/Allrun.pre b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/externalCoupledHeater/Allrun.pre index 4c7b942d3c..891b2331d6 100755 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/externalCoupledHeater/Allrun.pre +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/externalCoupledHeater/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/externalCoupledHeater/externalSolver b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/externalCoupledHeater/externalSolver index 2c0777e9a2..5cbd05f3c8 100755 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/externalCoupledHeater/externalSolver +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/externalCoupledHeater/externalSolver @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ # Dummy external solver to communicate with OpenFOAM via externalCoupled diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/Allclean b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/Allclean index 1ae8682984..3e5389aa0e 100755 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/Allclean +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/Allrun b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/Allrun index 2a91080485..78d5debbe7 100755 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/Allrun +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/Allrun-parallel b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/Allrun-parallel index daa14943ff..05490ca261 100755 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/Allrun-parallel +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/Allrun-parallel @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/Allrun.pre b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/Allrun.pre index 4b8043f2c1..f41dcbdb6e 100755 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/Allrun.pre +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/jouleHeatingSolid/Allclean b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/jouleHeatingSolid/Allclean index e61516f8d0..f1457b9e4f 100755 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/jouleHeatingSolid/Allclean +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/jouleHeatingSolid/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/jouleHeatingSolid/Allrun b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/jouleHeatingSolid/Allrun index 87973b2e38..e49ca8f0b1 100755 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/jouleHeatingSolid/Allrun +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/jouleHeatingSolid/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/jouleHeatingSolid/Allrun-parallel b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/jouleHeatingSolid/Allrun-parallel index ec19770665..9664307bc5 100755 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/jouleHeatingSolid/Allrun-parallel +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/jouleHeatingSolid/Allrun-parallel @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/jouleHeatingSolid/Allrun.pre b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/jouleHeatingSolid/Allrun.pre index 07b11abc0b..c376f22428 100755 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/jouleHeatingSolid/Allrun.pre +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/jouleHeatingSolid/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/jouleHeatingSolid/createGraphs b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/jouleHeatingSolid/createGraphs index 82a4f27599..eefe664a11 100755 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/jouleHeatingSolid/createGraphs +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/jouleHeatingSolid/createGraphs @@ -32,7 +32,7 @@ # Joule heating case # #------------------------------------------------------------------------------ -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory # Stop on first error set -e diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allclean b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allclean index 7c649775f2..8de0a3d125 100755 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allclean +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allrun b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allrun index 5015d6719a..b7b67f44d0 100755 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allrun +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allrun-parallel b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allrun-parallel index dcb0d0c9ad..860d02e95d 100755 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allrun-parallel +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allrun-parallel @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allrun.pre b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allrun.pre index 08a3576bd6..1ecc3f9c0c 100755 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allrun.pre +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionTwoPhaseEulerFoam/solidQuenching2D/Allclean b/tutorials/heatTransfer/chtMultiRegionTwoPhaseEulerFoam/solidQuenching2D/Allclean index 0fc41d934f..0e58bb1651 100755 --- a/tutorials/heatTransfer/chtMultiRegionTwoPhaseEulerFoam/solidQuenching2D/Allclean +++ b/tutorials/heatTransfer/chtMultiRegionTwoPhaseEulerFoam/solidQuenching2D/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionTwoPhaseEulerFoam/solidQuenching2D/Allrun b/tutorials/heatTransfer/chtMultiRegionTwoPhaseEulerFoam/solidQuenching2D/Allrun index 2a91080485..78d5debbe7 100755 --- a/tutorials/heatTransfer/chtMultiRegionTwoPhaseEulerFoam/solidQuenching2D/Allrun +++ b/tutorials/heatTransfer/chtMultiRegionTwoPhaseEulerFoam/solidQuenching2D/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionTwoPhaseEulerFoam/solidQuenching2D/Allrun.pre b/tutorials/heatTransfer/chtMultiRegionTwoPhaseEulerFoam/solidQuenching2D/Allrun.pre index b22cf80d33..6c42bb5b0c 100755 --- a/tutorials/heatTransfer/chtMultiRegionTwoPhaseEulerFoam/solidQuenching2D/Allrun.pre +++ b/tutorials/heatTransfer/chtMultiRegionTwoPhaseEulerFoam/solidQuenching2D/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/overBuoyantPimpleDyMFoam/movingBox/Allclean b/tutorials/heatTransfer/overBuoyantPimpleDyMFoam/movingBox/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/heatTransfer/overBuoyantPimpleDyMFoam/movingBox/Allclean +++ b/tutorials/heatTransfer/overBuoyantPimpleDyMFoam/movingBox/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/overBuoyantPimpleDyMFoam/movingBox/Allrun b/tutorials/heatTransfer/overBuoyantPimpleDyMFoam/movingBox/Allrun index 6451e7454e..6c7b941a15 100755 --- a/tutorials/heatTransfer/overBuoyantPimpleDyMFoam/movingBox/Allrun +++ b/tutorials/heatTransfer/overBuoyantPimpleDyMFoam/movingBox/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/overBuoyantPimpleDyMFoam/movingBox/Allrun.pre b/tutorials/heatTransfer/overBuoyantPimpleDyMFoam/movingBox/Allrun.pre index 308bbee9fd..c0a6663fb9 100755 --- a/tutorials/heatTransfer/overBuoyantPimpleDyMFoam/movingBox/Allrun.pre +++ b/tutorials/heatTransfer/overBuoyantPimpleDyMFoam/movingBox/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/SRFPimpleFoam/rotor2D/Allrun b/tutorials/incompressible/SRFPimpleFoam/rotor2D/Allrun index b069c38b3f..d5b4b35cc2 100755 --- a/tutorials/incompressible/SRFPimpleFoam/rotor2D/Allrun +++ b/tutorials/incompressible/SRFPimpleFoam/rotor2D/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/SRFPimpleFoam/rotor2D/makeMesh b/tutorials/incompressible/SRFPimpleFoam/rotor2D/makeMesh index 2c367f2649..8d3b2be138 100755 --- a/tutorials/incompressible/SRFPimpleFoam/rotor2D/makeMesh +++ b/tutorials/incompressible/SRFPimpleFoam/rotor2D/makeMesh @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory #------------------------------------------------------------------------------ m4 system/blockMeshDict.m4 > system/blockMeshDict diff --git a/tutorials/incompressible/adjointOptimisationFoam/Allrun b/tutorials/incompressible/adjointOptimisationFoam/Allrun index e83f1fe8b5..767b6295a2 100755 --- a/tutorials/incompressible/adjointOptimisationFoam/Allrun +++ b/tutorials/incompressible/adjointOptimisationFoam/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/adjointOptimisationFoam/motorBike/Allclean b/tutorials/incompressible/adjointOptimisationFoam/motorBike/Allclean index 11b2d1ad38..98085ff247 100755 --- a/tutorials/incompressible/adjointOptimisationFoam/motorBike/Allclean +++ b/tutorials/incompressible/adjointOptimisationFoam/motorBike/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/adjointOptimisationFoam/motorBike/Allrun b/tutorials/incompressible/adjointOptimisationFoam/motorBike/Allrun index b1ce817b95..3b20001a50 100755 --- a/tutorials/incompressible/adjointOptimisationFoam/motorBike/Allrun +++ b/tutorials/incompressible/adjointOptimisationFoam/motorBike/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/adjointOptimisationFoam/naca0012/laminar/drag/Allclean b/tutorials/incompressible/adjointOptimisationFoam/naca0012/laminar/drag/Allclean index e8557c2554..426e7ad42e 100755 --- a/tutorials/incompressible/adjointOptimisationFoam/naca0012/laminar/drag/Allclean +++ b/tutorials/incompressible/adjointOptimisationFoam/naca0012/laminar/drag/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/adjointOptimisationFoam/naca0012/laminar/drag/Allrun b/tutorials/incompressible/adjointOptimisationFoam/naca0012/laminar/drag/Allrun index 0b2935e1a6..b0961695d2 100755 --- a/tutorials/incompressible/adjointOptimisationFoam/naca0012/laminar/drag/Allrun +++ b/tutorials/incompressible/adjointOptimisationFoam/naca0012/laminar/drag/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/adjointOptimisationFoam/naca0012/laminar/lift/Allclean b/tutorials/incompressible/adjointOptimisationFoam/naca0012/laminar/lift/Allclean index e8557c2554..426e7ad42e 100755 --- a/tutorials/incompressible/adjointOptimisationFoam/naca0012/laminar/lift/Allclean +++ b/tutorials/incompressible/adjointOptimisationFoam/naca0012/laminar/lift/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/adjointOptimisationFoam/naca0012/laminar/lift/Allrun b/tutorials/incompressible/adjointOptimisationFoam/naca0012/laminar/lift/Allrun index 0b2935e1a6..b0961695d2 100755 --- a/tutorials/incompressible/adjointOptimisationFoam/naca0012/laminar/lift/Allrun +++ b/tutorials/incompressible/adjointOptimisationFoam/naca0012/laminar/lift/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/adjointOptimisationFoam/naca0012/laminar/moment/Allclean b/tutorials/incompressible/adjointOptimisationFoam/naca0012/laminar/moment/Allclean index e8557c2554..426e7ad42e 100755 --- a/tutorials/incompressible/adjointOptimisationFoam/naca0012/laminar/moment/Allclean +++ b/tutorials/incompressible/adjointOptimisationFoam/naca0012/laminar/moment/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/adjointOptimisationFoam/naca0012/laminar/moment/Allrun b/tutorials/incompressible/adjointOptimisationFoam/naca0012/laminar/moment/Allrun index 0b2935e1a6..b0961695d2 100755 --- a/tutorials/incompressible/adjointOptimisationFoam/naca0012/laminar/moment/Allrun +++ b/tutorials/incompressible/adjointOptimisationFoam/naca0012/laminar/moment/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/adjointOptimisationFoam/naca0012/turbulent/liftFullSetup/Allclean b/tutorials/incompressible/adjointOptimisationFoam/naca0012/turbulent/liftFullSetup/Allclean index e8557c2554..426e7ad42e 100755 --- a/tutorials/incompressible/adjointOptimisationFoam/naca0012/turbulent/liftFullSetup/Allclean +++ b/tutorials/incompressible/adjointOptimisationFoam/naca0012/turbulent/liftFullSetup/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/adjointOptimisationFoam/naca0012/turbulent/liftFullSetup/Allrun b/tutorials/incompressible/adjointOptimisationFoam/naca0012/turbulent/liftFullSetup/Allrun index 0b2935e1a6..b0961695d2 100755 --- a/tutorials/incompressible/adjointOptimisationFoam/naca0012/turbulent/liftFullSetup/Allrun +++ b/tutorials/incompressible/adjointOptimisationFoam/naca0012/turbulent/liftFullSetup/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/adjointOptimisationFoam/naca0012/turbulent/liftMinimumSetup/Allclean b/tutorials/incompressible/adjointOptimisationFoam/naca0012/turbulent/liftMinimumSetup/Allclean index e8557c2554..426e7ad42e 100755 --- a/tutorials/incompressible/adjointOptimisationFoam/naca0012/turbulent/liftMinimumSetup/Allclean +++ b/tutorials/incompressible/adjointOptimisationFoam/naca0012/turbulent/liftMinimumSetup/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/adjointOptimisationFoam/naca0012/turbulent/liftMinimumSetup/Allrun b/tutorials/incompressible/adjointOptimisationFoam/naca0012/turbulent/liftMinimumSetup/Allrun index 0b2935e1a6..b0961695d2 100755 --- a/tutorials/incompressible/adjointOptimisationFoam/naca0012/turbulent/liftMinimumSetup/Allrun +++ b/tutorials/incompressible/adjointOptimisationFoam/naca0012/turbulent/liftMinimumSetup/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/adjointOptimisationFoam/sbend/laminar/Allclean b/tutorials/incompressible/adjointOptimisationFoam/sbend/laminar/Allclean index e8557c2554..426e7ad42e 100755 --- a/tutorials/incompressible/adjointOptimisationFoam/sbend/laminar/Allclean +++ b/tutorials/incompressible/adjointOptimisationFoam/sbend/laminar/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/adjointOptimisationFoam/sbend/laminar/Allrun b/tutorials/incompressible/adjointOptimisationFoam/sbend/laminar/Allrun index 709d51de20..69abef2dca 100755 --- a/tutorials/incompressible/adjointOptimisationFoam/sbend/laminar/Allrun +++ b/tutorials/incompressible/adjointOptimisationFoam/sbend/laminar/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/adjointOptimisationFoam/sbend/turbulent/highRe/Allclean b/tutorials/incompressible/adjointOptimisationFoam/sbend/turbulent/highRe/Allclean index e8557c2554..426e7ad42e 100755 --- a/tutorials/incompressible/adjointOptimisationFoam/sbend/turbulent/highRe/Allclean +++ b/tutorials/incompressible/adjointOptimisationFoam/sbend/turbulent/highRe/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/adjointOptimisationFoam/sbend/turbulent/highRe/Allrun b/tutorials/incompressible/adjointOptimisationFoam/sbend/turbulent/highRe/Allrun index 0e54d2da9d..b3f93a4189 100755 --- a/tutorials/incompressible/adjointOptimisationFoam/sbend/turbulent/highRe/Allrun +++ b/tutorials/incompressible/adjointOptimisationFoam/sbend/turbulent/highRe/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/adjointOptimisationFoam/sbend/turbulent/lowRe/multiPoint/Allclean b/tutorials/incompressible/adjointOptimisationFoam/sbend/turbulent/lowRe/multiPoint/Allclean index 2ebf7f59e3..75b88d3ea2 100755 --- a/tutorials/incompressible/adjointOptimisationFoam/sbend/turbulent/lowRe/multiPoint/Allclean +++ b/tutorials/incompressible/adjointOptimisationFoam/sbend/turbulent/lowRe/multiPoint/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory #------------------------------------------------------------------------------ # Clean time directories and processors diff --git a/tutorials/incompressible/adjointOptimisationFoam/sbend/turbulent/lowRe/multiPoint/Allrun b/tutorials/incompressible/adjointOptimisationFoam/sbend/turbulent/lowRe/multiPoint/Allrun index 0e54d2da9d..b3f93a4189 100755 --- a/tutorials/incompressible/adjointOptimisationFoam/sbend/turbulent/lowRe/multiPoint/Allrun +++ b/tutorials/incompressible/adjointOptimisationFoam/sbend/turbulent/lowRe/multiPoint/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/adjointOptimisationFoam/sbend/turbulent/lowRe/singlePoint/Allclean b/tutorials/incompressible/adjointOptimisationFoam/sbend/turbulent/lowRe/singlePoint/Allclean index e8557c2554..426e7ad42e 100755 --- a/tutorials/incompressible/adjointOptimisationFoam/sbend/turbulent/lowRe/singlePoint/Allclean +++ b/tutorials/incompressible/adjointOptimisationFoam/sbend/turbulent/lowRe/singlePoint/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/adjointOptimisationFoam/sbend/turbulent/lowRe/singlePoint/Allrun b/tutorials/incompressible/adjointOptimisationFoam/sbend/turbulent/lowRe/singlePoint/Allrun index 0e54d2da9d..b3f93a4189 100755 --- a/tutorials/incompressible/adjointOptimisationFoam/sbend/turbulent/lowRe/singlePoint/Allrun +++ b/tutorials/incompressible/adjointOptimisationFoam/sbend/turbulent/lowRe/singlePoint/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/Allclean b/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/Allclean index e83c3d283f..431e21ebfa 100755 --- a/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/Allclean +++ b/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/Allrun b/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/Allrun index 7e0ec2d611..48478f6098 100755 --- a/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/Allrun +++ b/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/icoFoam/cavity/Allclean b/tutorials/incompressible/icoFoam/cavity/Allclean index ccade01d5c..2ad04787d4 100755 --- a/tutorials/incompressible/icoFoam/cavity/Allclean +++ b/tutorials/incompressible/icoFoam/cavity/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/icoFoam/cavity/Allrun b/tutorials/incompressible/icoFoam/cavity/Allrun index 322be8f1e3..20bb70e86e 100755 --- a/tutorials/incompressible/icoFoam/cavity/Allrun +++ b/tutorials/incompressible/icoFoam/cavity/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/icoFoam/cavityMappingTest/Allclean b/tutorials/incompressible/icoFoam/cavityMappingTest/Allclean index 314c10a431..9fbb6841dd 100755 --- a/tutorials/incompressible/icoFoam/cavityMappingTest/Allclean +++ b/tutorials/incompressible/icoFoam/cavityMappingTest/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/icoFoam/cavityMappingTest/Allrun b/tutorials/incompressible/icoFoam/cavityMappingTest/Allrun index bcc22fee98..0b83f050ce 100755 --- a/tutorials/incompressible/icoFoam/cavityMappingTest/Allrun +++ b/tutorials/incompressible/icoFoam/cavityMappingTest/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/icoFoam/cavityMappingTest/Allrun-parallel b/tutorials/incompressible/icoFoam/cavityMappingTest/Allrun-parallel index 89785ed735..adc6af4aa1 100755 --- a/tutorials/incompressible/icoFoam/cavityMappingTest/Allrun-parallel +++ b/tutorials/incompressible/icoFoam/cavityMappingTest/Allrun-parallel @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/icoFoam/elbow/Allclean b/tutorials/incompressible/icoFoam/elbow/Allclean index a3d2f17cbf..c91141a02b 100755 --- a/tutorials/incompressible/icoFoam/elbow/Allclean +++ b/tutorials/incompressible/icoFoam/elbow/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/icoFoam/elbow/Allrun b/tutorials/incompressible/icoFoam/elbow/Allrun index 3c3bc90645..cd48c29b6d 100755 --- a/tutorials/incompressible/icoFoam/elbow/Allrun +++ b/tutorials/incompressible/icoFoam/elbow/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/lumpedPointMotion/building/Allclean b/tutorials/incompressible/lumpedPointMotion/building/Allclean index deafd19282..970e3bfab8 100755 --- a/tutorials/incompressible/lumpedPointMotion/building/Allclean +++ b/tutorials/incompressible/lumpedPointMotion/building/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory (cd steady && ./Allclean) diff --git a/tutorials/incompressible/lumpedPointMotion/building/Allrun b/tutorials/incompressible/lumpedPointMotion/building/Allrun index eea388000c..8efee0b8b2 100755 --- a/tutorials/incompressible/lumpedPointMotion/building/Allrun +++ b/tutorials/incompressible/lumpedPointMotion/building/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ @@ -31,7 +31,7 @@ copyParallelPointDisplacement() if [ -n "$dstTime" ] then ( - cd $src || exit 1 + cd "$src" || exit for proc in processor* do @@ -55,7 +55,7 @@ copyParallelPointDisplacement() if [ -n "$latestTime" -a "$deltaT" != "$latestTime" ] then ( - cd $src || exit 1 + cd "$src" || exit for proc in processor* do diff --git a/tutorials/incompressible/lumpedPointMotion/building/Allrun.move b/tutorials/incompressible/lumpedPointMotion/building/Allrun.move index a11a98bb9c..277b6fef42 100755 --- a/tutorials/incompressible/lumpedPointMotion/building/Allrun.move +++ b/tutorials/incompressible/lumpedPointMotion/building/Allrun.move @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/lumpedPointMotion/building/files/Allrun.movement b/tutorials/incompressible/lumpedPointMotion/building/files/Allrun.movement index 95d097375d..c6133ada33 100755 --- a/tutorials/incompressible/lumpedPointMotion/building/files/Allrun.movement +++ b/tutorials/incompressible/lumpedPointMotion/building/files/Allrun.movement @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/lumpedPointMotion/building/files/Allrun.transient b/tutorials/incompressible/lumpedPointMotion/building/files/Allrun.transient index ad37cba112..5138ae30ca 100755 --- a/tutorials/incompressible/lumpedPointMotion/building/files/Allrun.transient +++ b/tutorials/incompressible/lumpedPointMotion/building/files/Allrun.transient @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/lumpedPointMotion/building/steady/Allclean b/tutorials/incompressible/lumpedPointMotion/building/steady/Allclean index 75a9307f3a..4b409fd7cd 100755 --- a/tutorials/incompressible/lumpedPointMotion/building/steady/Allclean +++ b/tutorials/incompressible/lumpedPointMotion/building/steady/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/lumpedPointMotion/building/steady/Allrun b/tutorials/incompressible/lumpedPointMotion/building/steady/Allrun index 20d8cfd609..0ef141508a 100755 --- a/tutorials/incompressible/lumpedPointMotion/building/steady/Allrun +++ b/tutorials/incompressible/lumpedPointMotion/building/steady/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/lumpedPointMotion/building/steady/Allrun.pre b/tutorials/incompressible/lumpedPointMotion/building/steady/Allrun.pre index 8b3b45f43f..26f4dff042 100755 --- a/tutorials/incompressible/lumpedPointMotion/building/steady/Allrun.pre +++ b/tutorials/incompressible/lumpedPointMotion/building/steady/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/overPimpleDyMFoam/cylinder/Allclean b/tutorials/incompressible/overPimpleDyMFoam/cylinder/Allclean index e3d1054040..d68987d2f2 100755 --- a/tutorials/incompressible/overPimpleDyMFoam/cylinder/Allclean +++ b/tutorials/incompressible/overPimpleDyMFoam/cylinder/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory # An extruded mesh around cylinder (cd cylinderAndBackground && ./Allclean) diff --git a/tutorials/incompressible/overPimpleDyMFoam/cylinder/Allrun b/tutorials/incompressible/overPimpleDyMFoam/cylinder/Allrun index b33335d4ae..ab6f6d89bb 100755 --- a/tutorials/incompressible/overPimpleDyMFoam/cylinder/Allrun +++ b/tutorials/incompressible/overPimpleDyMFoam/cylinder/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/overPimpleDyMFoam/cylinder/Allrun.pre b/tutorials/incompressible/overPimpleDyMFoam/cylinder/Allrun.pre index a16bf252a5..2822948074 100755 --- a/tutorials/incompressible/overPimpleDyMFoam/cylinder/Allrun.pre +++ b/tutorials/incompressible/overPimpleDyMFoam/cylinder/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/overPimpleDyMFoam/cylinder/cylinderAndBackground/Allclean b/tutorials/incompressible/overPimpleDyMFoam/cylinder/cylinderAndBackground/Allclean index 7a3d92a9d3..385a30a2f2 100755 --- a/tutorials/incompressible/overPimpleDyMFoam/cylinder/cylinderAndBackground/Allclean +++ b/tutorials/incompressible/overPimpleDyMFoam/cylinder/cylinderAndBackground/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/overPimpleDyMFoam/cylinder/cylinderAndBackground/Allrun b/tutorials/incompressible/overPimpleDyMFoam/cylinder/cylinderAndBackground/Allrun index b6b22e10a9..8c92b17f92 100755 --- a/tutorials/incompressible/overPimpleDyMFoam/cylinder/cylinderAndBackground/Allrun +++ b/tutorials/incompressible/overPimpleDyMFoam/cylinder/cylinderAndBackground/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/overPimpleDyMFoam/cylinder/cylinderAndBackground/Allrun.pre b/tutorials/incompressible/overPimpleDyMFoam/cylinder/cylinderAndBackground/Allrun.pre index 82380faff0..dcf0a0a3a0 100755 --- a/tutorials/incompressible/overPimpleDyMFoam/cylinder/cylinderAndBackground/Allrun.pre +++ b/tutorials/incompressible/overPimpleDyMFoam/cylinder/cylinderAndBackground/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/overPimpleDyMFoam/cylinder/cylinderMesh/Allrun.pre b/tutorials/incompressible/overPimpleDyMFoam/cylinder/cylinderMesh/Allrun.pre index 020fb73544..189ec9201d 100755 --- a/tutorials/incompressible/overPimpleDyMFoam/cylinder/cylinderMesh/Allrun.pre +++ b/tutorials/incompressible/overPimpleDyMFoam/cylinder/cylinderMesh/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/Allclean b/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/Allclean index 7a3d92a9d3..385a30a2f2 100755 --- a/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/Allclean +++ b/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/Allrun b/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/Allrun index 9b2c7c33de..54dcc75551 100755 --- a/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/Allrun +++ b/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/Allrun.pre b/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/Allrun.pre index 59fa20329f..3b9a368814 100755 --- a/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/Allrun.pre +++ b/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/overPimpleDyMFoam/twoSimpleRotors/Allclean b/tutorials/incompressible/overPimpleDyMFoam/twoSimpleRotors/Allclean index 7a3d92a9d3..385a30a2f2 100755 --- a/tutorials/incompressible/overPimpleDyMFoam/twoSimpleRotors/Allclean +++ b/tutorials/incompressible/overPimpleDyMFoam/twoSimpleRotors/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/overPimpleDyMFoam/twoSimpleRotors/Allrun b/tutorials/incompressible/overPimpleDyMFoam/twoSimpleRotors/Allrun index 68d65d6908..4e50485939 100755 --- a/tutorials/incompressible/overPimpleDyMFoam/twoSimpleRotors/Allrun +++ b/tutorials/incompressible/overPimpleDyMFoam/twoSimpleRotors/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/overPimpleDyMFoam/twoSimpleRotors/Allrun.pre b/tutorials/incompressible/overPimpleDyMFoam/twoSimpleRotors/Allrun.pre index 308bbee9fd..c0a6663fb9 100755 --- a/tutorials/incompressible/overPimpleDyMFoam/twoSimpleRotors/Allrun.pre +++ b/tutorials/incompressible/overPimpleDyMFoam/twoSimpleRotors/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/overSimpleFoam/aeroFoil/Allclean b/tutorials/incompressible/overSimpleFoam/aeroFoil/Allclean index acf84fc3f6..df58d65a75 100755 --- a/tutorials/incompressible/overSimpleFoam/aeroFoil/Allclean +++ b/tutorials/incompressible/overSimpleFoam/aeroFoil/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/overSimpleFoam/aeroFoil/Allrun b/tutorials/incompressible/overSimpleFoam/aeroFoil/Allrun index c8900e50a4..1dace3cedb 100755 --- a/tutorials/incompressible/overSimpleFoam/aeroFoil/Allrun +++ b/tutorials/incompressible/overSimpleFoam/aeroFoil/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/overSimpleFoam/aeroFoil/Allrun.pre b/tutorials/incompressible/overSimpleFoam/aeroFoil/Allrun.pre index 51d489ce75..d491fe2a46 100755 --- a/tutorials/incompressible/overSimpleFoam/aeroFoil/Allrun.pre +++ b/tutorials/incompressible/overSimpleFoam/aeroFoil/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/overSimpleFoam/aeroFoil/aeroFoil_overset/Allrun.pre b/tutorials/incompressible/overSimpleFoam/aeroFoil/aeroFoil_overset/Allrun.pre index 4138f49508..5396fd1cdb 100755 --- a/tutorials/incompressible/overSimpleFoam/aeroFoil/aeroFoil_overset/Allrun.pre +++ b/tutorials/incompressible/overSimpleFoam/aeroFoil/aeroFoil_overset/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/overSimpleFoam/aeroFoil/aeroFoil_snappyHexMesh/Allrun.pre b/tutorials/incompressible/overSimpleFoam/aeroFoil/aeroFoil_snappyHexMesh/Allrun.pre index a12136770e..f1769e83c5 100755 --- a/tutorials/incompressible/overSimpleFoam/aeroFoil/aeroFoil_snappyHexMesh/Allrun.pre +++ b/tutorials/incompressible/overSimpleFoam/aeroFoil/aeroFoil_snappyHexMesh/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/overSimpleFoam/aeroFoil/background_overset/Allclean b/tutorials/incompressible/overSimpleFoam/aeroFoil/background_overset/Allclean index 7a3d92a9d3..385a30a2f2 100755 --- a/tutorials/incompressible/overSimpleFoam/aeroFoil/background_overset/Allclean +++ b/tutorials/incompressible/overSimpleFoam/aeroFoil/background_overset/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/overSimpleFoam/aeroFoil/background_overset/Allrun b/tutorials/incompressible/overSimpleFoam/aeroFoil/background_overset/Allrun index baf931cdc5..5ddb771490 100755 --- a/tutorials/incompressible/overSimpleFoam/aeroFoil/background_overset/Allrun +++ b/tutorials/incompressible/overSimpleFoam/aeroFoil/background_overset/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/overSimpleFoam/aeroFoil/background_overset/Allrun.pre b/tutorials/incompressible/overSimpleFoam/aeroFoil/background_overset/Allrun.pre index e19a2507e7..13cdd977b7 100755 --- a/tutorials/incompressible/overSimpleFoam/aeroFoil/background_overset/Allrun.pre +++ b/tutorials/incompressible/overSimpleFoam/aeroFoil/background_overset/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/overSimpleFoam/aeroFoil/background_snappyHexMesh/Allrun.pre b/tutorials/incompressible/overSimpleFoam/aeroFoil/background_snappyHexMesh/Allrun.pre index 7a00d4bdf4..707ddef14c 100755 --- a/tutorials/incompressible/overSimpleFoam/aeroFoil/background_snappyHexMesh/Allrun.pre +++ b/tutorials/incompressible/overSimpleFoam/aeroFoil/background_snappyHexMesh/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/LES/channel395/Allrun b/tutorials/incompressible/pimpleFoam/LES/channel395/Allrun index b5069031bd..6645f82bd1 100755 --- a/tutorials/incompressible/pimpleFoam/LES/channel395/Allrun +++ b/tutorials/incompressible/pimpleFoam/LES/channel395/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/LES/channel395DFSEM/Allrun b/tutorials/incompressible/pimpleFoam/LES/channel395DFSEM/Allrun index 7bd764e893..044ebd3709 100755 --- a/tutorials/incompressible/pimpleFoam/LES/channel395DFSEM/Allrun +++ b/tutorials/incompressible/pimpleFoam/LES/channel395DFSEM/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/LES/decayIsoTurb/Allclean b/tutorials/incompressible/pimpleFoam/LES/decayIsoTurb/Allclean index f65bd29f74..95afd509c4 100755 --- a/tutorials/incompressible/pimpleFoam/LES/decayIsoTurb/Allclean +++ b/tutorials/incompressible/pimpleFoam/LES/decayIsoTurb/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/LES/decayIsoTurb/Allrun b/tutorials/incompressible/pimpleFoam/LES/decayIsoTurb/Allrun index c72c26537c..48b38c7044 100755 --- a/tutorials/incompressible/pimpleFoam/LES/decayIsoTurb/Allrun +++ b/tutorials/incompressible/pimpleFoam/LES/decayIsoTurb/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/LES/periodicHill/Allrun b/tutorials/incompressible/pimpleFoam/LES/periodicHill/Allrun index a6c04207fd..a33cc4cb38 100755 --- a/tutorials/incompressible/pimpleFoam/LES/periodicHill/Allrun +++ b/tutorials/incompressible/pimpleFoam/LES/periodicHill/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/LES/periodicHill/steadyState/Allrun b/tutorials/incompressible/pimpleFoam/LES/periodicHill/steadyState/Allrun index a5100b8e88..f1b728c781 100755 --- a/tutorials/incompressible/pimpleFoam/LES/periodicHill/steadyState/Allrun +++ b/tutorials/incompressible/pimpleFoam/LES/periodicHill/steadyState/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/LES/periodicHill/transient/Allclean b/tutorials/incompressible/pimpleFoam/LES/periodicHill/transient/Allclean index e8557c2554..426e7ad42e 100755 --- a/tutorials/incompressible/pimpleFoam/LES/periodicHill/transient/Allclean +++ b/tutorials/incompressible/pimpleFoam/LES/periodicHill/transient/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/LES/periodicHill/transient/Allrun b/tutorials/incompressible/pimpleFoam/LES/periodicHill/transient/Allrun index 3d10834d21..6bcadb8779 100755 --- a/tutorials/incompressible/pimpleFoam/LES/periodicHill/transient/Allrun +++ b/tutorials/incompressible/pimpleFoam/LES/periodicHill/transient/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/LES/periodicHill/transient/plot b/tutorials/incompressible/pimpleFoam/LES/periodicHill/transient/plot index 33c37ce356..3def204e53 100755 --- a/tutorials/incompressible/pimpleFoam/LES/periodicHill/transient/plot +++ b/tutorials/incompressible/pimpleFoam/LES/periodicHill/transient/plot @@ -1,5 +1,5 @@ #!/bin/bash -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory time="$(foamListTimes -latestTime -processor)" diff --git a/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/Allclean b/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/Allclean index 6f040f3f38..fab0842060 100755 --- a/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/Allclean +++ b/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory (cd initChannel && ./Allclean) (cd fullCase && ./Allclean) diff --git a/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/Allrun b/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/Allrun index 3a5026609f..156e50e97c 100755 --- a/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/Allrun +++ b/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory # Run a precursor channel flow to create a fully developed flow profile for the # main case diff --git a/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/fullCase/Allclean b/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/fullCase/Allclean index efd0f9386b..21c4cd3451 100755 --- a/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/fullCase/Allclean +++ b/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/fullCase/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/fullCase/Allrun b/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/fullCase/Allrun index 8272792df3..da49090980 100755 --- a/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/fullCase/Allrun +++ b/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/fullCase/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/fullCase/plot b/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/fullCase/plot index 400caa22e8..a93f4f7da9 100755 --- a/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/fullCase/plot +++ b/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/fullCase/plot @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory time=$1 resultsDir="postProcessing/sample1/$time" diff --git a/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/initChannel/Allclean b/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/initChannel/Allclean index 20570952aa..0319db8a53 100755 --- a/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/initChannel/Allclean +++ b/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/initChannel/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/initChannel/Allrun b/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/initChannel/Allrun index 562a8539d6..25ac4ee030 100755 --- a/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/initChannel/Allrun +++ b/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/initChannel/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/LES/vortexShed/Allclean b/tutorials/incompressible/pimpleFoam/LES/vortexShed/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/incompressible/pimpleFoam/LES/vortexShed/Allclean +++ b/tutorials/incompressible/pimpleFoam/LES/vortexShed/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/LES/vortexShed/Allrun b/tutorials/incompressible/pimpleFoam/LES/vortexShed/Allrun index 0fdfd46efd..b15f0d6c83 100755 --- a/tutorials/incompressible/pimpleFoam/LES/vortexShed/Allrun +++ b/tutorials/incompressible/pimpleFoam/LES/vortexShed/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/RAS/TJunctionFan/Allclean b/tutorials/incompressible/pimpleFoam/RAS/TJunctionFan/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/incompressible/pimpleFoam/RAS/TJunctionFan/Allclean +++ b/tutorials/incompressible/pimpleFoam/RAS/TJunctionFan/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/RAS/TJunctionFan/Allrun b/tutorials/incompressible/pimpleFoam/RAS/TJunctionFan/Allrun index 9f024cb1a8..4bf5128f9f 100755 --- a/tutorials/incompressible/pimpleFoam/RAS/TJunctionFan/Allrun +++ b/tutorials/incompressible/pimpleFoam/RAS/TJunctionFan/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/RAS/ellipsekkLOmega/Allclean b/tutorials/incompressible/pimpleFoam/RAS/ellipsekkLOmega/Allclean index 6f150d0d81..87fd883946 100755 --- a/tutorials/incompressible/pimpleFoam/RAS/ellipsekkLOmega/Allclean +++ b/tutorials/incompressible/pimpleFoam/RAS/ellipsekkLOmega/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/RAS/ellipsekkLOmega/Allrun b/tutorials/incompressible/pimpleFoam/RAS/ellipsekkLOmega/Allrun index 56d5f6988b..543d00aceb 100755 --- a/tutorials/incompressible/pimpleFoam/RAS/ellipsekkLOmega/Allrun +++ b/tutorials/incompressible/pimpleFoam/RAS/ellipsekkLOmega/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/RAS/ellipsekkLOmega/Allrun-parallel b/tutorials/incompressible/pimpleFoam/RAS/ellipsekkLOmega/Allrun-parallel index fcd03d4c7e..792ccf7552 100755 --- a/tutorials/incompressible/pimpleFoam/RAS/ellipsekkLOmega/Allrun-parallel +++ b/tutorials/incompressible/pimpleFoam/RAS/ellipsekkLOmega/Allrun-parallel @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/RAS/ellipsekkLOmega/Allrun.pre b/tutorials/incompressible/pimpleFoam/RAS/ellipsekkLOmega/Allrun.pre index 7aa84ed482..1c10eca143 100755 --- a/tutorials/incompressible/pimpleFoam/RAS/ellipsekkLOmega/Allrun.pre +++ b/tutorials/incompressible/pimpleFoam/RAS/ellipsekkLOmega/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/RAS/oscillatingInletACMI2D/Allclean b/tutorials/incompressible/pimpleFoam/RAS/oscillatingInletACMI2D/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/incompressible/pimpleFoam/RAS/oscillatingInletACMI2D/Allclean +++ b/tutorials/incompressible/pimpleFoam/RAS/oscillatingInletACMI2D/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/RAS/oscillatingInletACMI2D/Allrun b/tutorials/incompressible/pimpleFoam/RAS/oscillatingInletACMI2D/Allrun index 2a91080485..78d5debbe7 100755 --- a/tutorials/incompressible/pimpleFoam/RAS/oscillatingInletACMI2D/Allrun +++ b/tutorials/incompressible/pimpleFoam/RAS/oscillatingInletACMI2D/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/RAS/oscillatingInletACMI2D/Allrun-parallel b/tutorials/incompressible/pimpleFoam/RAS/oscillatingInletACMI2D/Allrun-parallel index a3e09fdcc4..e3f7ce446d 100755 --- a/tutorials/incompressible/pimpleFoam/RAS/oscillatingInletACMI2D/Allrun-parallel +++ b/tutorials/incompressible/pimpleFoam/RAS/oscillatingInletACMI2D/Allrun-parallel @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/RAS/oscillatingInletACMI2D/Allrun.pre b/tutorials/incompressible/pimpleFoam/RAS/oscillatingInletACMI2D/Allrun.pre index ee206e0a7e..2bd6200147 100755 --- a/tutorials/incompressible/pimpleFoam/RAS/oscillatingInletACMI2D/Allrun.pre +++ b/tutorials/incompressible/pimpleFoam/RAS/oscillatingInletACMI2D/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/RAS/propeller/Allclean b/tutorials/incompressible/pimpleFoam/RAS/propeller/Allclean index f0869ead54..1fa445298c 100755 --- a/tutorials/incompressible/pimpleFoam/RAS/propeller/Allclean +++ b/tutorials/incompressible/pimpleFoam/RAS/propeller/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/RAS/propeller/Allrun b/tutorials/incompressible/pimpleFoam/RAS/propeller/Allrun index a3e09fdcc4..e3f7ce446d 100755 --- a/tutorials/incompressible/pimpleFoam/RAS/propeller/Allrun +++ b/tutorials/incompressible/pimpleFoam/RAS/propeller/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/RAS/propeller/Allrun.pre b/tutorials/incompressible/pimpleFoam/RAS/propeller/Allrun.pre index 73f3089c1e..363d448def 100755 --- a/tutorials/incompressible/pimpleFoam/RAS/propeller/Allrun.pre +++ b/tutorials/incompressible/pimpleFoam/RAS/propeller/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/RAS/rotatingFanInRoom/Allclean b/tutorials/incompressible/pimpleFoam/RAS/rotatingFanInRoom/Allclean index cc8cdf476c..8047581d1d 100755 --- a/tutorials/incompressible/pimpleFoam/RAS/rotatingFanInRoom/Allclean +++ b/tutorials/incompressible/pimpleFoam/RAS/rotatingFanInRoom/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/RAS/rotatingFanInRoom/Allrun b/tutorials/incompressible/pimpleFoam/RAS/rotatingFanInRoom/Allrun index a3e09fdcc4..e3f7ce446d 100755 --- a/tutorials/incompressible/pimpleFoam/RAS/rotatingFanInRoom/Allrun +++ b/tutorials/incompressible/pimpleFoam/RAS/rotatingFanInRoom/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/RAS/rotatingFanInRoom/Allrun.pre b/tutorials/incompressible/pimpleFoam/RAS/rotatingFanInRoom/Allrun.pre index 14cfb9ef36..30dc5df80d 100755 --- a/tutorials/incompressible/pimpleFoam/RAS/rotatingFanInRoom/Allrun.pre +++ b/tutorials/incompressible/pimpleFoam/RAS/rotatingFanInRoom/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/RAS/wingMotion/Allclean b/tutorials/incompressible/pimpleFoam/RAS/wingMotion/Allclean index 38f1b6d21e..5a6d18cbcd 100755 --- a/tutorials/incompressible/pimpleFoam/RAS/wingMotion/Allclean +++ b/tutorials/incompressible/pimpleFoam/RAS/wingMotion/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/RAS/wingMotion/Allrun b/tutorials/incompressible/pimpleFoam/RAS/wingMotion/Allrun index a94f46a2a9..93e6eb8251 100755 --- a/tutorials/incompressible/pimpleFoam/RAS/wingMotion/Allrun +++ b/tutorials/incompressible/pimpleFoam/RAS/wingMotion/Allrun @@ -1,11 +1,11 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ # Make 3D mesh in slab of cells. ( - cd wingMotion_snappyHexMesh || exit 1 + cd wingMotion_snappyHexMesh || exit runApplication blockMesh runApplication snappyHexMesh -overwrite @@ -13,7 +13,7 @@ cd ${0%/*} || exit 1 # Run from this directory # Make a 2D mesh by extruding a patch and solve to steady state. ( - cd wingMotion2D_simpleFoam || exit 1 + cd wingMotion2D_simpleFoam || exit runApplication extrudeMesh runApplication createPatch -overwrite @@ -24,7 +24,7 @@ cd ${0%/*} || exit 1 # Run from this directory # Copy mesh from the steady state case, map the results to a mesh motion case, # then solve transient. ( - cd wingMotion2D_pimpleFoam || exit 1 + cd wingMotion2D_pimpleFoam || exit rm -rf constant/polyMesh \cp -r ../wingMotion2D_simpleFoam/constant/polyMesh constant diff --git a/tutorials/incompressible/pimpleFoam/laminar/mixerVesselAMI2D/Allrun b/tutorials/incompressible/pimpleFoam/laminar/mixerVesselAMI2D/Allrun index 74684c8ffc..183c0d86ae 100755 --- a/tutorials/incompressible/pimpleFoam/laminar/mixerVesselAMI2D/Allrun +++ b/tutorials/incompressible/pimpleFoam/laminar/mixerVesselAMI2D/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/laminar/mixerVesselAMI2D/makeMesh b/tutorials/incompressible/pimpleFoam/laminar/mixerVesselAMI2D/makeMesh index d9fc3c0658..010f38bd5f 100755 --- a/tutorials/incompressible/pimpleFoam/laminar/mixerVesselAMI2D/makeMesh +++ b/tutorials/incompressible/pimpleFoam/laminar/mixerVesselAMI2D/makeMesh @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/laminar/planarPoiseuille/Allclean b/tutorials/incompressible/pimpleFoam/laminar/planarPoiseuille/Allclean index d6f99365fb..d670ed7d36 100755 --- a/tutorials/incompressible/pimpleFoam/laminar/planarPoiseuille/Allclean +++ b/tutorials/incompressible/pimpleFoam/laminar/planarPoiseuille/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/laminar/planarPoiseuille/Allrun b/tutorials/incompressible/pimpleFoam/laminar/planarPoiseuille/Allrun index 0135c39b37..893cbf8c2a 100755 --- a/tutorials/incompressible/pimpleFoam/laminar/planarPoiseuille/Allrun +++ b/tutorials/incompressible/pimpleFoam/laminar/planarPoiseuille/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pisoFoam/LES/motorBike/Allclean b/tutorials/incompressible/pisoFoam/LES/motorBike/Allclean index 873b751367..05fb6f01cb 100755 --- a/tutorials/incompressible/pisoFoam/LES/motorBike/Allclean +++ b/tutorials/incompressible/pisoFoam/LES/motorBike/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pisoFoam/LES/motorBike/Allrun b/tutorials/incompressible/pisoFoam/LES/motorBike/Allrun index 8285c7ece8..d6cb2e8877 100755 --- a/tutorials/incompressible/pisoFoam/LES/motorBike/Allrun +++ b/tutorials/incompressible/pisoFoam/LES/motorBike/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pisoFoam/LES/motorBike/lesFiles/Allrun b/tutorials/incompressible/pisoFoam/LES/motorBike/lesFiles/Allrun index 20b46894d6..e080a7124b 100755 --- a/tutorials/incompressible/pisoFoam/LES/motorBike/lesFiles/Allrun +++ b/tutorials/incompressible/pisoFoam/LES/motorBike/lesFiles/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pisoFoam/LES/motorBike/motorBike/Allclean b/tutorials/incompressible/pisoFoam/LES/motorBike/motorBike/Allclean index d2b49b164f..d76b3b9589 100755 --- a/tutorials/incompressible/pisoFoam/LES/motorBike/motorBike/Allclean +++ b/tutorials/incompressible/pisoFoam/LES/motorBike/motorBike/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pisoFoam/LES/motorBike/motorBike/Allrun b/tutorials/incompressible/pisoFoam/LES/motorBike/motorBike/Allrun index a08ca47dd7..78c665597a 100755 --- a/tutorials/incompressible/pisoFoam/LES/motorBike/motorBike/Allrun +++ b/tutorials/incompressible/pisoFoam/LES/motorBike/motorBike/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pisoFoam/laminar/porousBlockage/Allrun b/tutorials/incompressible/pisoFoam/laminar/porousBlockage/Allrun index 4496910459..9ed5ee1f12 100755 --- a/tutorials/incompressible/pisoFoam/laminar/porousBlockage/Allrun +++ b/tutorials/incompressible/pisoFoam/laminar/porousBlockage/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/porousSimpleFoam/angledDuct/explicit/Allclean b/tutorials/incompressible/porousSimpleFoam/angledDuct/explicit/Allclean index 90be62e7b4..8d1dd92f19 100755 --- a/tutorials/incompressible/porousSimpleFoam/angledDuct/explicit/Allclean +++ b/tutorials/incompressible/porousSimpleFoam/angledDuct/explicit/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/porousSimpleFoam/angledDuct/explicit/Allrun b/tutorials/incompressible/porousSimpleFoam/angledDuct/explicit/Allrun index 84cd354497..e73a311ec5 100755 --- a/tutorials/incompressible/porousSimpleFoam/angledDuct/explicit/Allrun +++ b/tutorials/incompressible/porousSimpleFoam/angledDuct/explicit/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/porousSimpleFoam/angledDuct/implicit/Allclean b/tutorials/incompressible/porousSimpleFoam/angledDuct/implicit/Allclean index 90be62e7b4..8d1dd92f19 100755 --- a/tutorials/incompressible/porousSimpleFoam/angledDuct/implicit/Allclean +++ b/tutorials/incompressible/porousSimpleFoam/angledDuct/implicit/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/porousSimpleFoam/angledDuct/implicit/Allrun b/tutorials/incompressible/porousSimpleFoam/angledDuct/implicit/Allrun index 84cd354497..e73a311ec5 100755 --- a/tutorials/incompressible/porousSimpleFoam/angledDuct/implicit/Allrun +++ b/tutorials/incompressible/porousSimpleFoam/angledDuct/implicit/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/porousSimpleFoam/straightDuctImplicit/Allclean b/tutorials/incompressible/porousSimpleFoam/straightDuctImplicit/Allclean index f33be130b0..378b522afc 100755 --- a/tutorials/incompressible/porousSimpleFoam/straightDuctImplicit/Allclean +++ b/tutorials/incompressible/porousSimpleFoam/straightDuctImplicit/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/porousSimpleFoam/straightDuctImplicit/Allrun b/tutorials/incompressible/porousSimpleFoam/straightDuctImplicit/Allrun index 2a91080485..78d5debbe7 100755 --- a/tutorials/incompressible/porousSimpleFoam/straightDuctImplicit/Allrun +++ b/tutorials/incompressible/porousSimpleFoam/straightDuctImplicit/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/porousSimpleFoam/straightDuctImplicit/Allrun.pre b/tutorials/incompressible/porousSimpleFoam/straightDuctImplicit/Allrun.pre index f29680eca4..b326a764ce 100755 --- a/tutorials/incompressible/porousSimpleFoam/straightDuctImplicit/Allrun.pre +++ b/tutorials/incompressible/porousSimpleFoam/straightDuctImplicit/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/simpleFoam/T3A/Allclean b/tutorials/incompressible/simpleFoam/T3A/Allclean index e719ed465c..c7a926e48f 100755 --- a/tutorials/incompressible/simpleFoam/T3A/Allclean +++ b/tutorials/incompressible/simpleFoam/T3A/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/simpleFoam/T3A/Allrun b/tutorials/incompressible/simpleFoam/T3A/Allrun index f3fd335e40..051aabe571 100755 --- a/tutorials/incompressible/simpleFoam/T3A/Allrun +++ b/tutorials/incompressible/simpleFoam/T3A/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/simpleFoam/T3A/validation/createGraphs b/tutorials/incompressible/simpleFoam/T3A/validation/createGraphs index 941251e49a..20791ff21e 100755 --- a/tutorials/incompressible/simpleFoam/T3A/validation/createGraphs +++ b/tutorials/incompressible/simpleFoam/T3A/validation/createGraphs @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory #------------------------------------------------------------------------------ # Require gnuplot diff --git a/tutorials/incompressible/simpleFoam/airFoil2D/Allclean b/tutorials/incompressible/simpleFoam/airFoil2D/Allclean index 69876cfd86..4206e0d2cd 100755 --- a/tutorials/incompressible/simpleFoam/airFoil2D/Allclean +++ b/tutorials/incompressible/simpleFoam/airFoil2D/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory #------------------------------------------------------------------------------ # Clean time directories only diff --git a/tutorials/incompressible/simpleFoam/airFoil2D/Allrun b/tutorials/incompressible/simpleFoam/airFoil2D/Allrun index 136dcbed91..bda1596bce 100755 --- a/tutorials/incompressible/simpleFoam/airFoil2D/Allrun +++ b/tutorials/incompressible/simpleFoam/airFoil2D/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/simpleFoam/backwardFacingStep2D/Allclean b/tutorials/incompressible/simpleFoam/backwardFacingStep2D/Allclean index 6b8c683e27..d20ff12f1a 100755 --- a/tutorials/incompressible/simpleFoam/backwardFacingStep2D/Allclean +++ b/tutorials/incompressible/simpleFoam/backwardFacingStep2D/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/simpleFoam/backwardFacingStep2D/Allrun b/tutorials/incompressible/simpleFoam/backwardFacingStep2D/Allrun index 95e596b83d..e36faa9d3a 100755 --- a/tutorials/incompressible/simpleFoam/backwardFacingStep2D/Allrun +++ b/tutorials/incompressible/simpleFoam/backwardFacingStep2D/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/simpleFoam/bump2D/Allclean b/tutorials/incompressible/simpleFoam/bump2D/Allclean index 02236aa62b..ad78bb2a56 100755 --- a/tutorials/incompressible/simpleFoam/bump2D/Allclean +++ b/tutorials/incompressible/simpleFoam/bump2D/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/simpleFoam/bump2D/Allrun b/tutorials/incompressible/simpleFoam/bump2D/Allrun index d14b8a8733..32ad6c2947 100755 --- a/tutorials/incompressible/simpleFoam/bump2D/Allrun +++ b/tutorials/incompressible/simpleFoam/bump2D/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/simpleFoam/bump2D/plot b/tutorials/incompressible/simpleFoam/bump2D/plot index 326db01bf4..a400d328e3 100755 --- a/tutorials/incompressible/simpleFoam/bump2D/plot +++ b/tutorials/incompressible/simpleFoam/bump2D/plot @@ -1,5 +1,5 @@ #!/bin/bash -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/simpleFoam/mixerVessel2D/Allrun b/tutorials/incompressible/simpleFoam/mixerVessel2D/Allrun index b069c38b3f..d5b4b35cc2 100755 --- a/tutorials/incompressible/simpleFoam/mixerVessel2D/Allrun +++ b/tutorials/incompressible/simpleFoam/mixerVessel2D/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/simpleFoam/mixerVessel2D/makeMesh b/tutorials/incompressible/simpleFoam/mixerVessel2D/makeMesh index 8d6f4d11eb..7239a755e2 100755 --- a/tutorials/incompressible/simpleFoam/mixerVessel2D/makeMesh +++ b/tutorials/incompressible/simpleFoam/mixerVessel2D/makeMesh @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/simpleFoam/motorBike/Allclean b/tutorials/incompressible/simpleFoam/motorBike/Allclean index 11b2d1ad38..98085ff247 100755 --- a/tutorials/incompressible/simpleFoam/motorBike/Allclean +++ b/tutorials/incompressible/simpleFoam/motorBike/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/simpleFoam/motorBike/Allrun b/tutorials/incompressible/simpleFoam/motorBike/Allrun index db24cb629a..5646a4fbb3 100755 --- a/tutorials/incompressible/simpleFoam/motorBike/Allrun +++ b/tutorials/incompressible/simpleFoam/motorBike/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/simpleFoam/pipeCyclic/Allclean b/tutorials/incompressible/simpleFoam/pipeCyclic/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/incompressible/simpleFoam/pipeCyclic/Allclean +++ b/tutorials/incompressible/simpleFoam/pipeCyclic/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/simpleFoam/pipeCyclic/Allrun b/tutorials/incompressible/simpleFoam/pipeCyclic/Allrun index 7a1859f5b2..1250aae46f 100755 --- a/tutorials/incompressible/simpleFoam/pipeCyclic/Allrun +++ b/tutorials/incompressible/simpleFoam/pipeCyclic/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/simpleFoam/rotorDisk/Allclean b/tutorials/incompressible/simpleFoam/rotorDisk/Allclean index a8a6585c2c..6245bb5dc5 100755 --- a/tutorials/incompressible/simpleFoam/rotorDisk/Allclean +++ b/tutorials/incompressible/simpleFoam/rotorDisk/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/simpleFoam/rotorDisk/Allrun b/tutorials/incompressible/simpleFoam/rotorDisk/Allrun index 59e951d3db..ab67b43a1b 100755 --- a/tutorials/incompressible/simpleFoam/rotorDisk/Allrun +++ b/tutorials/incompressible/simpleFoam/rotorDisk/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/simpleFoam/simpleCar/Allrun b/tutorials/incompressible/simpleFoam/simpleCar/Allrun index f09a124beb..8eaa242e96 100755 --- a/tutorials/incompressible/simpleFoam/simpleCar/Allrun +++ b/tutorials/incompressible/simpleFoam/simpleCar/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/simpleFoam/turbineSiting/Allclean b/tutorials/incompressible/simpleFoam/turbineSiting/Allclean index 233729ef41..a1e5d09eb5 100755 --- a/tutorials/incompressible/simpleFoam/turbineSiting/Allclean +++ b/tutorials/incompressible/simpleFoam/turbineSiting/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/simpleFoam/turbineSiting/Allrun b/tutorials/incompressible/simpleFoam/turbineSiting/Allrun index fbb23d79fc..0319d4b62b 100755 --- a/tutorials/incompressible/simpleFoam/turbineSiting/Allrun +++ b/tutorials/incompressible/simpleFoam/turbineSiting/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/simpleFoam/turbulentFlatPlate/Allclean b/tutorials/incompressible/simpleFoam/turbulentFlatPlate/Allclean index 3e1293202c..e74fa2de91 100755 --- a/tutorials/incompressible/simpleFoam/turbulentFlatPlate/Allclean +++ b/tutorials/incompressible/simpleFoam/turbulentFlatPlate/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/simpleFoam/turbulentFlatPlate/Allrun b/tutorials/incompressible/simpleFoam/turbulentFlatPlate/Allrun index c7734d84ec..09d2d09c48 100755 --- a/tutorials/incompressible/simpleFoam/turbulentFlatPlate/Allrun +++ b/tutorials/incompressible/simpleFoam/turbulentFlatPlate/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/simpleFoam/turbulentFlatPlate/plot b/tutorials/incompressible/simpleFoam/turbulentFlatPlate/plot index 63e451a6d9..d6004ff0a0 100755 --- a/tutorials/incompressible/simpleFoam/turbulentFlatPlate/plot +++ b/tutorials/incompressible/simpleFoam/turbulentFlatPlate/plot @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # run from this directory +cd "${0%/*}" || exit # run from this directory Uinf=$1 nuInf=$2 diff --git a/tutorials/incompressible/simpleFoam/windAroundBuildings/Allclean b/tutorials/incompressible/simpleFoam/windAroundBuildings/Allclean index c038d0c5fc..84aedc7c36 100755 --- a/tutorials/incompressible/simpleFoam/windAroundBuildings/Allclean +++ b/tutorials/incompressible/simpleFoam/windAroundBuildings/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/simpleFoam/windAroundBuildings/Allrun b/tutorials/incompressible/simpleFoam/windAroundBuildings/Allrun index cae90c8fbd..b110324cc7 100755 --- a/tutorials/incompressible/simpleFoam/windAroundBuildings/Allrun +++ b/tutorials/incompressible/simpleFoam/windAroundBuildings/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/simpleFoam/windAroundBuildings/Allrun-parallel b/tutorials/incompressible/simpleFoam/windAroundBuildings/Allrun-parallel index 717b8a882e..d320ba23e5 100755 --- a/tutorials/incompressible/simpleFoam/windAroundBuildings/Allrun-parallel +++ b/tutorials/incompressible/simpleFoam/windAroundBuildings/Allrun-parallel @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/simpleFoam/windAroundBuildings/Allrun.pre b/tutorials/incompressible/simpleFoam/windAroundBuildings/Allrun.pre index 549e727361..b5ba5c7ffb 100755 --- a/tutorials/incompressible/simpleFoam/windAroundBuildings/Allrun.pre +++ b/tutorials/incompressible/simpleFoam/windAroundBuildings/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/MPPICFoam/cyclone/Allclean b/tutorials/lagrangian/MPPICFoam/cyclone/Allclean index 74c2680904..0834bb8d4a 100755 --- a/tutorials/lagrangian/MPPICFoam/cyclone/Allclean +++ b/tutorials/lagrangian/MPPICFoam/cyclone/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/MPPICFoam/cyclone/Allrun b/tutorials/lagrangian/MPPICFoam/cyclone/Allrun index e278452263..a3fbae9767 100755 --- a/tutorials/lagrangian/MPPICFoam/cyclone/Allrun +++ b/tutorials/lagrangian/MPPICFoam/cyclone/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/coalChemistryFoam/simplifiedSiwek/Allrun b/tutorials/lagrangian/coalChemistryFoam/simplifiedSiwek/Allrun index 91f8ced907..1b8431a28d 100755 --- a/tutorials/lagrangian/coalChemistryFoam/simplifiedSiwek/Allrun +++ b/tutorials/lagrangian/coalChemistryFoam/simplifiedSiwek/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/coalChemistryFoam/simplifiedSiwek/Allrun-parallel b/tutorials/lagrangian/coalChemistryFoam/simplifiedSiwek/Allrun-parallel index 4b2b6c2a17..417fc5f773 100755 --- a/tutorials/lagrangian/coalChemistryFoam/simplifiedSiwek/Allrun-parallel +++ b/tutorials/lagrangian/coalChemistryFoam/simplifiedSiwek/Allrun-parallel @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/icoUncoupledKinematicParcelDyMFoam/mixerVesselAMI2D/Allrun b/tutorials/lagrangian/icoUncoupledKinematicParcelDyMFoam/mixerVesselAMI2D/Allrun index 287801e89f..8e142f906c 100755 --- a/tutorials/lagrangian/icoUncoupledKinematicParcelDyMFoam/mixerVesselAMI2D/Allrun +++ b/tutorials/lagrangian/icoUncoupledKinematicParcelDyMFoam/mixerVesselAMI2D/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/icoUncoupledKinematicParcelFoam/hopper/Allclean b/tutorials/lagrangian/icoUncoupledKinematicParcelFoam/hopper/Allclean index bef51e89ce..be5d2dd26d 100755 --- a/tutorials/lagrangian/icoUncoupledKinematicParcelFoam/hopper/Allclean +++ b/tutorials/lagrangian/icoUncoupledKinematicParcelFoam/hopper/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/icoUncoupledKinematicParcelFoam/hopper/Allrun b/tutorials/lagrangian/icoUncoupledKinematicParcelFoam/hopper/Allrun index 67537c2e47..f3f6aa299d 100755 --- a/tutorials/lagrangian/icoUncoupledKinematicParcelFoam/hopper/Allrun +++ b/tutorials/lagrangian/icoUncoupledKinematicParcelFoam/hopper/Allrun @@ -1,10 +1,10 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ ( - cd hopperInitialState || exit 1 + cd hopperInitialState || exit runApplication blockMesh runApplication decomposePar @@ -21,7 +21,7 @@ cd ${0%/*} || exit 1 # Run from this directory ) ( - cd hopperEmptying || exit 1 + cd hopperEmptying || exit restore0Dir runApplication blockMesh diff --git a/tutorials/lagrangian/reactingParcelFoam/cylinder/Allclean b/tutorials/lagrangian/reactingParcelFoam/cylinder/Allclean index 107833d305..d1eafb2217 100755 --- a/tutorials/lagrangian/reactingParcelFoam/cylinder/Allclean +++ b/tutorials/lagrangian/reactingParcelFoam/cylinder/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/reactingParcelFoam/cylinder/Allrun b/tutorials/lagrangian/reactingParcelFoam/cylinder/Allrun index 2a91080485..78d5debbe7 100755 --- a/tutorials/lagrangian/reactingParcelFoam/cylinder/Allrun +++ b/tutorials/lagrangian/reactingParcelFoam/cylinder/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/reactingParcelFoam/cylinder/Allrun.pre b/tutorials/lagrangian/reactingParcelFoam/cylinder/Allrun.pre index f384c7ed4b..8397e70191 100755 --- a/tutorials/lagrangian/reactingParcelFoam/cylinder/Allrun.pre +++ b/tutorials/lagrangian/reactingParcelFoam/cylinder/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/reactingParcelFoam/filter/Allclean b/tutorials/lagrangian/reactingParcelFoam/filter/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/lagrangian/reactingParcelFoam/filter/Allclean +++ b/tutorials/lagrangian/reactingParcelFoam/filter/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/reactingParcelFoam/filter/Allrun b/tutorials/lagrangian/reactingParcelFoam/filter/Allrun index 7145df146e..62e4967197 100755 --- a/tutorials/lagrangian/reactingParcelFoam/filter/Allrun +++ b/tutorials/lagrangian/reactingParcelFoam/filter/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/reactingParcelFoam/filter/Allrun-parallel b/tutorials/lagrangian/reactingParcelFoam/filter/Allrun-parallel index 160b6cfc33..a13af8858a 100755 --- a/tutorials/lagrangian/reactingParcelFoam/filter/Allrun-parallel +++ b/tutorials/lagrangian/reactingParcelFoam/filter/Allrun-parallel @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/reactingParcelFoam/hotBoxes/Allclean b/tutorials/lagrangian/reactingParcelFoam/hotBoxes/Allclean index 167cd9815f..1dd68f0828 100755 --- a/tutorials/lagrangian/reactingParcelFoam/hotBoxes/Allclean +++ b/tutorials/lagrangian/reactingParcelFoam/hotBoxes/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/reactingParcelFoam/hotBoxes/Allrun b/tutorials/lagrangian/reactingParcelFoam/hotBoxes/Allrun index 2a91080485..78d5debbe7 100755 --- a/tutorials/lagrangian/reactingParcelFoam/hotBoxes/Allrun +++ b/tutorials/lagrangian/reactingParcelFoam/hotBoxes/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/reactingParcelFoam/hotBoxes/Allrun-parallel b/tutorials/lagrangian/reactingParcelFoam/hotBoxes/Allrun-parallel index 034abb394c..19e3aeb1e0 100755 --- a/tutorials/lagrangian/reactingParcelFoam/hotBoxes/Allrun-parallel +++ b/tutorials/lagrangian/reactingParcelFoam/hotBoxes/Allrun-parallel @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/reactingParcelFoam/hotBoxes/Allrun.pre b/tutorials/lagrangian/reactingParcelFoam/hotBoxes/Allrun.pre index 3379bd6551..4a86ebc3ee 100755 --- a/tutorials/lagrangian/reactingParcelFoam/hotBoxes/Allrun.pre +++ b/tutorials/lagrangian/reactingParcelFoam/hotBoxes/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/reactingParcelFoam/hotBoxes/patchifyObstacles b/tutorials/lagrangian/reactingParcelFoam/hotBoxes/patchifyObstacles index 071a41c3ad..bcba3aa7f9 100755 --- a/tutorials/lagrangian/reactingParcelFoam/hotBoxes/patchifyObstacles +++ b/tutorials/lagrangian/reactingParcelFoam/hotBoxes/patchifyObstacles @@ -7,7 +7,7 @@ # \\/ M anipulation | # #-----------------------------------------------------------------------------# -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory # Stop on first error set -e diff --git a/tutorials/lagrangian/reactingParcelFoam/rivuletPanel/Allclean b/tutorials/lagrangian/reactingParcelFoam/rivuletPanel/Allclean index 107833d305..d1eafb2217 100755 --- a/tutorials/lagrangian/reactingParcelFoam/rivuletPanel/Allclean +++ b/tutorials/lagrangian/reactingParcelFoam/rivuletPanel/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/reactingParcelFoam/rivuletPanel/Allrun b/tutorials/lagrangian/reactingParcelFoam/rivuletPanel/Allrun index 2a91080485..78d5debbe7 100755 --- a/tutorials/lagrangian/reactingParcelFoam/rivuletPanel/Allrun +++ b/tutorials/lagrangian/reactingParcelFoam/rivuletPanel/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/reactingParcelFoam/rivuletPanel/Allrun.pre b/tutorials/lagrangian/reactingParcelFoam/rivuletPanel/Allrun.pre index 21f044d531..0d3d21a7db 100755 --- a/tutorials/lagrangian/reactingParcelFoam/rivuletPanel/Allrun.pre +++ b/tutorials/lagrangian/reactingParcelFoam/rivuletPanel/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/reactingParcelFoam/splashPanel/Allclean b/tutorials/lagrangian/reactingParcelFoam/splashPanel/Allclean index 107833d305..d1eafb2217 100755 --- a/tutorials/lagrangian/reactingParcelFoam/splashPanel/Allclean +++ b/tutorials/lagrangian/reactingParcelFoam/splashPanel/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/reactingParcelFoam/splashPanel/Allrun b/tutorials/lagrangian/reactingParcelFoam/splashPanel/Allrun index 2a91080485..78d5debbe7 100755 --- a/tutorials/lagrangian/reactingParcelFoam/splashPanel/Allrun +++ b/tutorials/lagrangian/reactingParcelFoam/splashPanel/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/reactingParcelFoam/splashPanel/Allrun.pre b/tutorials/lagrangian/reactingParcelFoam/splashPanel/Allrun.pre index 57c00ce1fa..0227901db1 100755 --- a/tutorials/lagrangian/reactingParcelFoam/splashPanel/Allrun.pre +++ b/tutorials/lagrangian/reactingParcelFoam/splashPanel/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/reactingParcelFoam/verticalChannel/Allclean b/tutorials/lagrangian/reactingParcelFoam/verticalChannel/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/lagrangian/reactingParcelFoam/verticalChannel/Allclean +++ b/tutorials/lagrangian/reactingParcelFoam/verticalChannel/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/reactingParcelFoam/verticalChannel/Allrun b/tutorials/lagrangian/reactingParcelFoam/verticalChannel/Allrun index b80d4bc025..815dc6f3d0 100755 --- a/tutorials/lagrangian/reactingParcelFoam/verticalChannel/Allrun +++ b/tutorials/lagrangian/reactingParcelFoam/verticalChannel/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/reactingParcelFoam/verticalChannelLTS/Allclean b/tutorials/lagrangian/reactingParcelFoam/verticalChannelLTS/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/lagrangian/reactingParcelFoam/verticalChannelLTS/Allclean +++ b/tutorials/lagrangian/reactingParcelFoam/verticalChannelLTS/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/reactingParcelFoam/verticalChannelLTS/Allrun b/tutorials/lagrangian/reactingParcelFoam/verticalChannelLTS/Allrun index b80d4bc025..815dc6f3d0 100755 --- a/tutorials/lagrangian/reactingParcelFoam/verticalChannelLTS/Allrun +++ b/tutorials/lagrangian/reactingParcelFoam/verticalChannelLTS/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/simpleReactingParcelFoam/verticalChannel/Allclean b/tutorials/lagrangian/simpleReactingParcelFoam/verticalChannel/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/lagrangian/simpleReactingParcelFoam/verticalChannel/Allclean +++ b/tutorials/lagrangian/simpleReactingParcelFoam/verticalChannel/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/simpleReactingParcelFoam/verticalChannel/Allrun b/tutorials/lagrangian/simpleReactingParcelFoam/verticalChannel/Allrun index 181f180407..eaf8f1bdb0 100755 --- a/tutorials/lagrangian/simpleReactingParcelFoam/verticalChannel/Allrun +++ b/tutorials/lagrangian/simpleReactingParcelFoam/verticalChannel/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/simpleReactingParcelFoam/verticalChannel/Allrun-parallel b/tutorials/lagrangian/simpleReactingParcelFoam/verticalChannel/Allrun-parallel index 525226dabc..2392ee3aec 100755 --- a/tutorials/lagrangian/simpleReactingParcelFoam/verticalChannel/Allrun-parallel +++ b/tutorials/lagrangian/simpleReactingParcelFoam/verticalChannel/Allrun-parallel @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/PDRblockMesh/box0/Allrun b/tutorials/mesh/PDRblockMesh/box0/Allrun index b5185c4818..2ab30812a3 100755 --- a/tutorials/mesh/PDRblockMesh/box0/Allrun +++ b/tutorials/mesh/PDRblockMesh/box0/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/blockMesh/pipe/Allrun b/tutorials/mesh/blockMesh/pipe/Allrun index 71433f95e1..c0ee92beed 100755 --- a/tutorials/mesh/blockMesh/pipe/Allrun +++ b/tutorials/mesh/blockMesh/pipe/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/blockMesh/sphere/Allrun b/tutorials/mesh/blockMesh/sphere/Allrun index 71433f95e1..c0ee92beed 100755 --- a/tutorials/mesh/blockMesh/sphere/Allrun +++ b/tutorials/mesh/blockMesh/sphere/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/blockMesh/sphere7/Allrun b/tutorials/mesh/blockMesh/sphere7/Allrun index 71433f95e1..c0ee92beed 100755 --- a/tutorials/mesh/blockMesh/sphere7/Allrun +++ b/tutorials/mesh/blockMesh/sphere7/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/blockMesh/sphere7ProjectedEdges/Allrun b/tutorials/mesh/blockMesh/sphere7ProjectedEdges/Allrun index 71433f95e1..c0ee92beed 100755 --- a/tutorials/mesh/blockMesh/sphere7ProjectedEdges/Allrun +++ b/tutorials/mesh/blockMesh/sphere7ProjectedEdges/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/foamyHexMesh/Allrun b/tutorials/mesh/foamyHexMesh/Allrun index fda07445f3..591d56cc9a 100755 --- a/tutorials/mesh/foamyHexMesh/Allrun +++ b/tutorials/mesh/foamyHexMesh/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/foamyHexMesh/blob/Allclean b/tutorials/mesh/foamyHexMesh/blob/Allclean index 900c7ae9d6..a047083b6a 100755 --- a/tutorials/mesh/foamyHexMesh/blob/Allclean +++ b/tutorials/mesh/foamyHexMesh/blob/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ @@ -12,7 +12,7 @@ rm -rf constant/targetCellSize rm -rf constant/internalDelaunayVertices ( - cd constant/backgroundMeshDecomposition/polyMesh 2>/dev/null || exit 1 + cd constant/backgroundMeshDecomposition/polyMesh 2>/dev/null || exit rm -f boundary faces neighbour owner points ) diff --git a/tutorials/mesh/foamyHexMesh/blob/Allrun b/tutorials/mesh/foamyHexMesh/blob/Allrun index e529d75222..7a5effa600 100755 --- a/tutorials/mesh/foamyHexMesh/blob/Allrun +++ b/tutorials/mesh/foamyHexMesh/blob/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/foamyHexMesh/blob/Allrun-parallel b/tutorials/mesh/foamyHexMesh/blob/Allrun-parallel index ab8ae66f81..e354f6b1cd 100755 --- a/tutorials/mesh/foamyHexMesh/blob/Allrun-parallel +++ b/tutorials/mesh/foamyHexMesh/blob/Allrun-parallel @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/foamyHexMesh/flange/Allclean b/tutorials/mesh/foamyHexMesh/flange/Allclean index ebbf9cbfcf..aa708a2c75 100755 --- a/tutorials/mesh/foamyHexMesh/flange/Allclean +++ b/tutorials/mesh/foamyHexMesh/flange/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/foamyHexMesh/flange/Allrun b/tutorials/mesh/foamyHexMesh/flange/Allrun index 232e706eb6..958a62854b 100755 --- a/tutorials/mesh/foamyHexMesh/flange/Allrun +++ b/tutorials/mesh/foamyHexMesh/flange/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/foamyHexMesh/flange/Allrun-parallel b/tutorials/mesh/foamyHexMesh/flange/Allrun-parallel index d30107e142..3a8fc6c413 100755 --- a/tutorials/mesh/foamyHexMesh/flange/Allrun-parallel +++ b/tutorials/mesh/foamyHexMesh/flange/Allrun-parallel @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/foamyHexMesh/mixerVessel/Allclean b/tutorials/mesh/foamyHexMesh/mixerVessel/Allclean index e90832f2f3..b566c267f6 100755 --- a/tutorials/mesh/foamyHexMesh/mixerVessel/Allclean +++ b/tutorials/mesh/foamyHexMesh/mixerVessel/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/foamyHexMesh/mixerVessel/Allrun b/tutorials/mesh/foamyHexMesh/mixerVessel/Allrun index 21ded794f3..8c4c23193a 100755 --- a/tutorials/mesh/foamyHexMesh/mixerVessel/Allrun +++ b/tutorials/mesh/foamyHexMesh/mixerVessel/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/foamyHexMesh/mixerVessel/Allrun-pre b/tutorials/mesh/foamyHexMesh/mixerVessel/Allrun-pre index 3677f9e4af..4d3b073a6b 100755 --- a/tutorials/mesh/foamyHexMesh/mixerVessel/Allrun-pre +++ b/tutorials/mesh/foamyHexMesh/mixerVessel/Allrun-pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/foamyHexMesh/mixerVessel/Allrun-simulation b/tutorials/mesh/foamyHexMesh/mixerVessel/Allrun-simulation index 2ffb97dbd5..d26a4ab9cb 100755 --- a/tutorials/mesh/foamyHexMesh/mixerVessel/Allrun-simulation +++ b/tutorials/mesh/foamyHexMesh/mixerVessel/Allrun-simulation @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/foamyHexMesh/mixerVessel/constant/triSurface/surfaceProcess.sh b/tutorials/mesh/foamyHexMesh/mixerVessel/constant/triSurface/surfaceProcess.sh index d5d581ca74..5ba6bb7452 100755 --- a/tutorials/mesh/foamyHexMesh/mixerVessel/constant/triSurface/surfaceProcess.sh +++ b/tutorials/mesh/foamyHexMesh/mixerVessel/constant/triSurface/surfaceProcess.sh @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory cp rawSurfaces/*.stl . diff --git a/tutorials/mesh/foamyHexMesh/simpleShapes/Allclean b/tutorials/mesh/foamyHexMesh/simpleShapes/Allclean index 62db1e1521..0934170e61 100755 --- a/tutorials/mesh/foamyHexMesh/simpleShapes/Allclean +++ b/tutorials/mesh/foamyHexMesh/simpleShapes/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/foamyHexMesh/simpleShapes/Allrun b/tutorials/mesh/foamyHexMesh/simpleShapes/Allrun index 5446cfebfe..2f8b5f5e70 100755 --- a/tutorials/mesh/foamyHexMesh/simpleShapes/Allrun +++ b/tutorials/mesh/foamyHexMesh/simpleShapes/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/foamyQuadMesh/OpenCFD/Allclean b/tutorials/mesh/foamyQuadMesh/OpenCFD/Allclean index 08ec200a51..5011e0d612 100755 --- a/tutorials/mesh/foamyQuadMesh/OpenCFD/Allclean +++ b/tutorials/mesh/foamyQuadMesh/OpenCFD/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/foamyQuadMesh/OpenCFD/Allrun b/tutorials/mesh/foamyQuadMesh/OpenCFD/Allrun index 0f1cc9fd8d..c8bd936a03 100755 --- a/tutorials/mesh/foamyQuadMesh/OpenCFD/Allrun +++ b/tutorials/mesh/foamyQuadMesh/OpenCFD/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/foamyQuadMesh/OpenCFD/Allrun-rhoCentralFoam b/tutorials/mesh/foamyQuadMesh/OpenCFD/Allrun-rhoCentralFoam index 5f82d66ef3..c3a73d6d2b 100755 --- a/tutorials/mesh/foamyQuadMesh/OpenCFD/Allrun-rhoCentralFoam +++ b/tutorials/mesh/foamyQuadMesh/OpenCFD/Allrun-rhoCentralFoam @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/foamyQuadMesh/jaggedBoundary/Allclean b/tutorials/mesh/foamyQuadMesh/jaggedBoundary/Allclean index 05bd571029..e3bf558557 100755 --- a/tutorials/mesh/foamyQuadMesh/jaggedBoundary/Allclean +++ b/tutorials/mesh/foamyQuadMesh/jaggedBoundary/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/foamyQuadMesh/jaggedBoundary/Allrun b/tutorials/mesh/foamyQuadMesh/jaggedBoundary/Allrun index f7e44fd471..da5fe8e519 100755 --- a/tutorials/mesh/foamyQuadMesh/jaggedBoundary/Allrun +++ b/tutorials/mesh/foamyQuadMesh/jaggedBoundary/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/foamyQuadMesh/square/Allclean b/tutorials/mesh/foamyQuadMesh/square/Allclean index 383a1d240e..8284ed7931 100755 --- a/tutorials/mesh/foamyQuadMesh/square/Allclean +++ b/tutorials/mesh/foamyQuadMesh/square/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/foamyQuadMesh/square/Allrun b/tutorials/mesh/foamyQuadMesh/square/Allrun index 67b82efa9b..6a9227cd15 100755 --- a/tutorials/mesh/foamyQuadMesh/square/Allrun +++ b/tutorials/mesh/foamyQuadMesh/square/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/moveDynamicMesh/relativeMotion/Allclean b/tutorials/mesh/moveDynamicMesh/relativeMotion/Allclean index 7ed1bddaac..b3687dc6a4 100755 --- a/tutorials/mesh/moveDynamicMesh/relativeMotion/Allclean +++ b/tutorials/mesh/moveDynamicMesh/relativeMotion/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/moveDynamicMesh/relativeMotion/Allrun b/tutorials/mesh/moveDynamicMesh/relativeMotion/Allrun index d2ec3805d5..7be851a4cf 100755 --- a/tutorials/mesh/moveDynamicMesh/relativeMotion/Allrun +++ b/tutorials/mesh/moveDynamicMesh/relativeMotion/Allrun @@ -1,11 +1,11 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ # Make 3D mesh in slab of cells. ( - cd box_snappyHexMesh || exit 1 + cd box_snappyHexMesh || exit runApplication blockMesh runApplication snappyHexMesh -overwrite @@ -16,7 +16,7 @@ cd ${0%/*} || exit 1 # Run from this directory # Make a 2D mesh by extruding a patch and solve to steady state. ( - cd box2D_moveDynamicMesh || exit 1 + cd box2D_moveDynamicMesh || exit runApplication extrudeMesh restore0Dir diff --git a/tutorials/mesh/parallel/cavity/Allclean b/tutorials/mesh/parallel/cavity/Allclean index 9a688e1654..bbdcd42c87 100755 --- a/tutorials/mesh/parallel/cavity/Allclean +++ b/tutorials/mesh/parallel/cavity/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/parallel/cavity/Allrun b/tutorials/mesh/parallel/cavity/Allrun index af6461fc94..cc656bccdb 100755 --- a/tutorials/mesh/parallel/cavity/Allrun +++ b/tutorials/mesh/parallel/cavity/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/parallel/filter/Allclean b/tutorials/mesh/parallel/filter/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/mesh/parallel/filter/Allclean +++ b/tutorials/mesh/parallel/filter/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/parallel/filter/Allrun b/tutorials/mesh/parallel/filter/Allrun index 1fec245a4e..bb0d748fc6 100755 --- a/tutorials/mesh/parallel/filter/Allrun +++ b/tutorials/mesh/parallel/filter/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/refineMesh/refineFieldDirs/Allclean b/tutorials/mesh/refineMesh/refineFieldDirs/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/mesh/refineMesh/refineFieldDirs/Allclean +++ b/tutorials/mesh/refineMesh/refineFieldDirs/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/refineMesh/refineFieldDirs/Allrun b/tutorials/mesh/refineMesh/refineFieldDirs/Allrun index 1e65454375..cc76457010 100755 --- a/tutorials/mesh/refineMesh/refineFieldDirs/Allrun +++ b/tutorials/mesh/refineMesh/refineFieldDirs/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/snappyHexMesh/Allrun b/tutorials/mesh/snappyHexMesh/Allrun index b92f5fbb01..5dcb83d6b1 100755 --- a/tutorials/mesh/snappyHexMesh/Allrun +++ b/tutorials/mesh/snappyHexMesh/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory ( cd flange && ./Allrun $* ) ( cd addLayersToFaceZone && ./Allrun ) diff --git a/tutorials/mesh/snappyHexMesh/addLayersToFaceZone/Allclean b/tutorials/mesh/snappyHexMesh/addLayersToFaceZone/Allclean index e8557c2554..426e7ad42e 100755 --- a/tutorials/mesh/snappyHexMesh/addLayersToFaceZone/Allclean +++ b/tutorials/mesh/snappyHexMesh/addLayersToFaceZone/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/snappyHexMesh/addLayersToFaceZone/Allrun b/tutorials/mesh/snappyHexMesh/addLayersToFaceZone/Allrun index d201cf0433..6178bf46fd 100755 --- a/tutorials/mesh/snappyHexMesh/addLayersToFaceZone/Allrun +++ b/tutorials/mesh/snappyHexMesh/addLayersToFaceZone/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/snappyHexMesh/aerofoilNACA0012_directionalRefinement/Allrun b/tutorials/mesh/snappyHexMesh/aerofoilNACA0012_directionalRefinement/Allrun index 1768a89306..a979afddc7 100755 --- a/tutorials/mesh/snappyHexMesh/aerofoilNACA0012_directionalRefinement/Allrun +++ b/tutorials/mesh/snappyHexMesh/aerofoilNACA0012_directionalRefinement/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/snappyHexMesh/distributedTriSurfaceMesh/Allclean b/tutorials/mesh/snappyHexMesh/distributedTriSurfaceMesh/Allclean index 3a1b7027d4..ea395563e6 100755 --- a/tutorials/mesh/snappyHexMesh/distributedTriSurfaceMesh/Allclean +++ b/tutorials/mesh/snappyHexMesh/distributedTriSurfaceMesh/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/snappyHexMesh/distributedTriSurfaceMesh/Allrun b/tutorials/mesh/snappyHexMesh/distributedTriSurfaceMesh/Allrun index e13f3648e5..4a61683f09 100755 --- a/tutorials/mesh/snappyHexMesh/distributedTriSurfaceMesh/Allrun +++ b/tutorials/mesh/snappyHexMesh/distributedTriSurfaceMesh/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/snappyHexMesh/flange/Allclean b/tutorials/mesh/snappyHexMesh/flange/Allclean index b23e6e73d9..36d26d8799 100755 --- a/tutorials/mesh/snappyHexMesh/flange/Allclean +++ b/tutorials/mesh/snappyHexMesh/flange/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/snappyHexMesh/flange/Allrun b/tutorials/mesh/snappyHexMesh/flange/Allrun index 9476bfeaf7..7d6e1058c5 100755 --- a/tutorials/mesh/snappyHexMesh/flange/Allrun +++ b/tutorials/mesh/snappyHexMesh/flange/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/snappyHexMesh/gap_detection/Allclean b/tutorials/mesh/snappyHexMesh/gap_detection/Allclean index e8557c2554..426e7ad42e 100755 --- a/tutorials/mesh/snappyHexMesh/gap_detection/Allclean +++ b/tutorials/mesh/snappyHexMesh/gap_detection/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/snappyHexMesh/gap_detection/Allrun b/tutorials/mesh/snappyHexMesh/gap_detection/Allrun index 1322aa4ec4..8492a777a6 100755 --- a/tutorials/mesh/snappyHexMesh/gap_detection/Allrun +++ b/tutorials/mesh/snappyHexMesh/gap_detection/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/snappyHexMesh/iglooWithFridgesDirectionalRefinement/Allrun b/tutorials/mesh/snappyHexMesh/iglooWithFridgesDirectionalRefinement/Allrun index 42bb8606cc..edfe6f7df4 100755 --- a/tutorials/mesh/snappyHexMesh/iglooWithFridgesDirectionalRefinement/Allrun +++ b/tutorials/mesh/snappyHexMesh/iglooWithFridgesDirectionalRefinement/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/snappyHexMesh/motorBike_leakDetection/Allclean b/tutorials/mesh/snappyHexMesh/motorBike_leakDetection/Allclean index 30a996996c..e8299777a5 100755 --- a/tutorials/mesh/snappyHexMesh/motorBike_leakDetection/Allclean +++ b/tutorials/mesh/snappyHexMesh/motorBike_leakDetection/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/snappyHexMesh/motorBike_leakDetection/Allrun b/tutorials/mesh/snappyHexMesh/motorBike_leakDetection/Allrun index 149095e62c..12201d6e78 100755 --- a/tutorials/mesh/snappyHexMesh/motorBike_leakDetection/Allrun +++ b/tutorials/mesh/snappyHexMesh/motorBike_leakDetection/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/snappyHexMesh/opposite_walls/Allclean b/tutorials/mesh/snappyHexMesh/opposite_walls/Allclean index e8557c2554..426e7ad42e 100755 --- a/tutorials/mesh/snappyHexMesh/opposite_walls/Allclean +++ b/tutorials/mesh/snappyHexMesh/opposite_walls/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/snappyHexMesh/opposite_walls/Allrun b/tutorials/mesh/snappyHexMesh/opposite_walls/Allrun index 9b412fc068..308f5fbfa5 100755 --- a/tutorials/mesh/snappyHexMesh/opposite_walls/Allrun +++ b/tutorials/mesh/snappyHexMesh/opposite_walls/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/stitchMesh/simple-cube1/Allclean b/tutorials/mesh/stitchMesh/simple-cube1/Allclean index a55cb8be89..7bc10aab61 100755 --- a/tutorials/mesh/stitchMesh/simple-cube1/Allclean +++ b/tutorials/mesh/stitchMesh/simple-cube1/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/stitchMesh/simple-cube1/Allmesh b/tutorials/mesh/stitchMesh/simple-cube1/Allmesh index 33f1381770..64cc2afa3d 100755 --- a/tutorials/mesh/stitchMesh/simple-cube1/Allmesh +++ b/tutorials/mesh/stitchMesh/simple-cube1/Allmesh @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/stitchMesh/simple-cube1/Allrun b/tutorials/mesh/stitchMesh/simple-cube1/Allrun index 121755665e..2a047ce11d 100755 --- a/tutorials/mesh/stitchMesh/simple-cube1/Allrun +++ b/tutorials/mesh/stitchMesh/simple-cube1/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/stitchMesh/simple-cube1/Allrun-args b/tutorials/mesh/stitchMesh/simple-cube1/Allrun-args index aa4eaab99c..99931c4c8f 100755 --- a/tutorials/mesh/stitchMesh/simple-cube1/Allrun-args +++ b/tutorials/mesh/stitchMesh/simple-cube1/Allrun-args @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/stitchMesh/simple-cube1/scripts/stitch b/tutorials/mesh/stitchMesh/simple-cube1/scripts/stitch index 8865ad9e10..43d857a1a1 100755 --- a/tutorials/mesh/stitchMesh/simple-cube1/scripts/stitch +++ b/tutorials/mesh/stitchMesh/simple-cube1/scripts/stitch @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/MPPICInterFoam/twoPhasePachuka/Allclean b/tutorials/multiphase/MPPICInterFoam/twoPhasePachuka/Allclean index 3ed4c04a2c..201c0813d4 100755 --- a/tutorials/multiphase/MPPICInterFoam/twoPhasePachuka/Allclean +++ b/tutorials/multiphase/MPPICInterFoam/twoPhasePachuka/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/MPPICInterFoam/twoPhasePachuka/Allrun b/tutorials/multiphase/MPPICInterFoam/twoPhasePachuka/Allrun index 587a7e2782..5e592ce887 100755 --- a/tutorials/multiphase/MPPICInterFoam/twoPhasePachuka/Allrun +++ b/tutorials/multiphase/MPPICInterFoam/twoPhasePachuka/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/cavitatingFoam/LES/Allrun b/tutorials/multiphase/cavitatingFoam/LES/Allrun index 153b2506fc..b83d125390 100755 --- a/tutorials/multiphase/cavitatingFoam/LES/Allrun +++ b/tutorials/multiphase/cavitatingFoam/LES/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory ( cd throttle && ./Allrun $* ) ( cd throttle3D && ./Allrun $* ) diff --git a/tutorials/multiphase/cavitatingFoam/LES/throttle/Allclean b/tutorials/multiphase/cavitatingFoam/LES/throttle/Allclean index 3fed01836a..9ab5795f37 100755 --- a/tutorials/multiphase/cavitatingFoam/LES/throttle/Allclean +++ b/tutorials/multiphase/cavitatingFoam/LES/throttle/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/cavitatingFoam/LES/throttle/Allrun b/tutorials/multiphase/cavitatingFoam/LES/throttle/Allrun index 190ea57a74..42b967ad24 100755 --- a/tutorials/multiphase/cavitatingFoam/LES/throttle/Allrun +++ b/tutorials/multiphase/cavitatingFoam/LES/throttle/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/cavitatingFoam/LES/throttle3D/Allclean b/tutorials/multiphase/cavitatingFoam/LES/throttle3D/Allclean index 410e4affe6..aa24b5d876 100755 --- a/tutorials/multiphase/cavitatingFoam/LES/throttle3D/Allclean +++ b/tutorials/multiphase/cavitatingFoam/LES/throttle3D/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/cavitatingFoam/LES/throttle3D/Allrun b/tutorials/multiphase/cavitatingFoam/LES/throttle3D/Allrun index aa4b900b54..08d6265bc9 100755 --- a/tutorials/multiphase/cavitatingFoam/LES/throttle3D/Allrun +++ b/tutorials/multiphase/cavitatingFoam/LES/throttle3D/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/cavitatingFoam/RAS/throttle/Allclean b/tutorials/multiphase/cavitatingFoam/RAS/throttle/Allclean index 3fed01836a..9ab5795f37 100755 --- a/tutorials/multiphase/cavitatingFoam/RAS/throttle/Allclean +++ b/tutorials/multiphase/cavitatingFoam/RAS/throttle/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/cavitatingFoam/RAS/throttle/Allrun b/tutorials/multiphase/cavitatingFoam/RAS/throttle/Allrun index 190ea57a74..42b967ad24 100755 --- a/tutorials/multiphase/cavitatingFoam/RAS/throttle/Allrun +++ b/tutorials/multiphase/cavitatingFoam/RAS/throttle/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/compressibleInterDyMFoam/laminar/sloshingTank2D/Allclean b/tutorials/multiphase/compressibleInterDyMFoam/laminar/sloshingTank2D/Allclean index aea3f0b970..4b806cf71e 100755 --- a/tutorials/multiphase/compressibleInterDyMFoam/laminar/sloshingTank2D/Allclean +++ b/tutorials/multiphase/compressibleInterDyMFoam/laminar/sloshingTank2D/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory foamCleanTutorials -self rm -rf 0/alpha.water 0/alpha.water.gz 0/T.air.gz 0/T.water.gz \ diff --git a/tutorials/multiphase/compressibleInterDyMFoam/laminar/sloshingTank2D/Allrun b/tutorials/multiphase/compressibleInterDyMFoam/laminar/sloshingTank2D/Allrun index b9be9e4afc..becf8fb153 100755 --- a/tutorials/multiphase/compressibleInterDyMFoam/laminar/sloshingTank2D/Allrun +++ b/tutorials/multiphase/compressibleInterDyMFoam/laminar/sloshingTank2D/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/compressibleInterDyMFoam/laminar/sphereDrop/Allclean b/tutorials/multiphase/compressibleInterDyMFoam/laminar/sphereDrop/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/compressibleInterDyMFoam/laminar/sphereDrop/Allclean +++ b/tutorials/multiphase/compressibleInterDyMFoam/laminar/sphereDrop/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/compressibleInterDyMFoam/laminar/sphereDrop/Allrun b/tutorials/multiphase/compressibleInterDyMFoam/laminar/sphereDrop/Allrun index 59cc4d8d97..7bd9a17145 100755 --- a/tutorials/multiphase/compressibleInterDyMFoam/laminar/sphereDrop/Allrun +++ b/tutorials/multiphase/compressibleInterDyMFoam/laminar/sphereDrop/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/compressibleInterDyMFoam/laminar/sphereDrop/Allrun-parallel b/tutorials/multiphase/compressibleInterDyMFoam/laminar/sphereDrop/Allrun-parallel index d91fc580cd..d9056addbc 100755 --- a/tutorials/multiphase/compressibleInterDyMFoam/laminar/sphereDrop/Allrun-parallel +++ b/tutorials/multiphase/compressibleInterDyMFoam/laminar/sphereDrop/Allrun-parallel @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/compressibleInterFoam/laminar/climbingRod/Allclean b/tutorials/multiphase/compressibleInterFoam/laminar/climbingRod/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/compressibleInterFoam/laminar/climbingRod/Allclean +++ b/tutorials/multiphase/compressibleInterFoam/laminar/climbingRod/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/compressibleInterFoam/laminar/climbingRod/Allrun b/tutorials/multiphase/compressibleInterFoam/laminar/climbingRod/Allrun index ed2e7082b0..316fb4d9fb 100755 --- a/tutorials/multiphase/compressibleInterFoam/laminar/climbingRod/Allrun +++ b/tutorials/multiphase/compressibleInterFoam/laminar/climbingRod/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/Allclean b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/Allclean +++ b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/Allrun b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/Allrun index e8157d67f2..b731754818 100755 --- a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/Allrun +++ b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/Allclean b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/Allclean index 54c07563fa..36bf55b76b 100755 --- a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/Allclean +++ b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/Allrun b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/Allrun index 675a6c956e..02b2d981f3 100755 --- a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/Allrun +++ b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/compressibleMultiphaseInterFoam/laminar/damBreak4phase/Allclean b/tutorials/multiphase/compressibleMultiphaseInterFoam/laminar/damBreak4phase/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/compressibleMultiphaseInterFoam/laminar/damBreak4phase/Allclean +++ b/tutorials/multiphase/compressibleMultiphaseInterFoam/laminar/damBreak4phase/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/compressibleMultiphaseInterFoam/laminar/damBreak4phase/Allrun b/tutorials/multiphase/compressibleMultiphaseInterFoam/laminar/damBreak4phase/Allrun index fce061485e..9134abbfbf 100755 --- a/tutorials/multiphase/compressibleMultiphaseInterFoam/laminar/damBreak4phase/Allrun +++ b/tutorials/multiphase/compressibleMultiphaseInterFoam/laminar/damBreak4phase/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/driftFluxFoam/RAS/mixerVessel2D/Allrun b/tutorials/multiphase/driftFluxFoam/RAS/mixerVessel2D/Allrun index 190a9840fd..d2bc727d9d 100755 --- a/tutorials/multiphase/driftFluxFoam/RAS/mixerVessel2D/Allrun +++ b/tutorials/multiphase/driftFluxFoam/RAS/mixerVessel2D/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/driftFluxFoam/RAS/mixerVessel2D/makeMesh b/tutorials/multiphase/driftFluxFoam/RAS/mixerVessel2D/makeMesh index 5405ca1217..440533a0a6 100755 --- a/tutorials/multiphase/driftFluxFoam/RAS/mixerVessel2D/makeMesh +++ b/tutorials/multiphase/driftFluxFoam/RAS/mixerVessel2D/makeMesh @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory #------------------------------------------------------------------------------ m4 system/blockMeshDict.m4 > system/blockMeshDict diff --git a/tutorials/multiphase/driftFluxFoam/RAS/tank3D/Allclean b/tutorials/multiphase/driftFluxFoam/RAS/tank3D/Allclean index f404febe8c..d9e841c536 100755 --- a/tutorials/multiphase/driftFluxFoam/RAS/tank3D/Allclean +++ b/tutorials/multiphase/driftFluxFoam/RAS/tank3D/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory # Clean time directories only rm -rf *[1-9]* diff --git a/tutorials/multiphase/driftFluxFoam/RAS/tank3D/Allrun b/tutorials/multiphase/driftFluxFoam/RAS/tank3D/Allrun index 136dcbed91..bda1596bce 100755 --- a/tutorials/multiphase/driftFluxFoam/RAS/tank3D/Allrun +++ b/tutorials/multiphase/driftFluxFoam/RAS/tank3D/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/icoReactingMultiPhaseInterFoam/evaporationMultiComponent/Allclean b/tutorials/multiphase/icoReactingMultiPhaseInterFoam/evaporationMultiComponent/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/icoReactingMultiPhaseInterFoam/evaporationMultiComponent/Allclean +++ b/tutorials/multiphase/icoReactingMultiPhaseInterFoam/evaporationMultiComponent/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/icoReactingMultiPhaseInterFoam/evaporationMultiComponent/Allrun b/tutorials/multiphase/icoReactingMultiPhaseInterFoam/evaporationMultiComponent/Allrun index fce061485e..9134abbfbf 100755 --- a/tutorials/multiphase/icoReactingMultiPhaseInterFoam/evaporationMultiComponent/Allrun +++ b/tutorials/multiphase/icoReactingMultiPhaseInterFoam/evaporationMultiComponent/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/icoReactingMultiPhaseInterFoam/inertMultiphaseMultiComponent/Allclean b/tutorials/multiphase/icoReactingMultiPhaseInterFoam/inertMultiphaseMultiComponent/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/icoReactingMultiPhaseInterFoam/inertMultiphaseMultiComponent/Allclean +++ b/tutorials/multiphase/icoReactingMultiPhaseInterFoam/inertMultiphaseMultiComponent/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/icoReactingMultiPhaseInterFoam/inertMultiphaseMultiComponent/Allrun b/tutorials/multiphase/icoReactingMultiPhaseInterFoam/inertMultiphaseMultiComponent/Allrun index fce061485e..9134abbfbf 100755 --- a/tutorials/multiphase/icoReactingMultiPhaseInterFoam/inertMultiphaseMultiComponent/Allrun +++ b/tutorials/multiphase/icoReactingMultiPhaseInterFoam/inertMultiphaseMultiComponent/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interCondensatingEvaporatingFoam/condensatingVessel/Allclean b/tutorials/multiphase/interCondensatingEvaporatingFoam/condensatingVessel/Allclean index e8557c2554..426e7ad42e 100755 --- a/tutorials/multiphase/interCondensatingEvaporatingFoam/condensatingVessel/Allclean +++ b/tutorials/multiphase/interCondensatingEvaporatingFoam/condensatingVessel/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interCondensatingEvaporatingFoam/condensatingVessel/Allrun b/tutorials/multiphase/interCondensatingEvaporatingFoam/condensatingVessel/Allrun index b17300cb71..4f6ed087bf 100755 --- a/tutorials/multiphase/interCondensatingEvaporatingFoam/condensatingVessel/Allrun +++ b/tutorials/multiphase/interCondensatingEvaporatingFoam/condensatingVessel/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/LES/nozzleFlow2D/Allclean b/tutorials/multiphase/interFoam/LES/nozzleFlow2D/Allclean index ace43dc4e2..5d9a4fd438 100755 --- a/tutorials/multiphase/interFoam/LES/nozzleFlow2D/Allclean +++ b/tutorials/multiphase/interFoam/LES/nozzleFlow2D/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/LES/nozzleFlow2D/Allrun b/tutorials/multiphase/interFoam/LES/nozzleFlow2D/Allrun index cfa8a8c924..48169f8772 100755 --- a/tutorials/multiphase/interFoam/LES/nozzleFlow2D/Allrun +++ b/tutorials/multiphase/interFoam/LES/nozzleFlow2D/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/RAS/DTCHull/Allclean b/tutorials/multiphase/interFoam/RAS/DTCHull/Allclean index 62b835c6b8..668be57a6f 100755 --- a/tutorials/multiphase/interFoam/RAS/DTCHull/Allclean +++ b/tutorials/multiphase/interFoam/RAS/DTCHull/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/RAS/DTCHull/Allrun b/tutorials/multiphase/interFoam/RAS/DTCHull/Allrun index ac333f9ecc..af1ec5643d 100755 --- a/tutorials/multiphase/interFoam/RAS/DTCHull/Allrun +++ b/tutorials/multiphase/interFoam/RAS/DTCHull/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/RAS/DTCHullMoving/Allclean b/tutorials/multiphase/interFoam/RAS/DTCHullMoving/Allclean index 7966d68b7c..80df70b360 100755 --- a/tutorials/multiphase/interFoam/RAS/DTCHullMoving/Allclean +++ b/tutorials/multiphase/interFoam/RAS/DTCHullMoving/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/RAS/DTCHullMoving/Allrun b/tutorials/multiphase/interFoam/RAS/DTCHullMoving/Allrun index 199fc81ac4..4b8f85db21 100755 --- a/tutorials/multiphase/interFoam/RAS/DTCHullMoving/Allrun +++ b/tutorials/multiphase/interFoam/RAS/DTCHullMoving/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/RAS/angledDuct/Allrun b/tutorials/multiphase/interFoam/RAS/angledDuct/Allrun index 287801e89f..8e142f906c 100755 --- a/tutorials/multiphase/interFoam/RAS/angledDuct/Allrun +++ b/tutorials/multiphase/interFoam/RAS/angledDuct/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/RAS/damBreak/Allclean b/tutorials/multiphase/interFoam/RAS/damBreak/Allclean index 7608832fc4..26e52f3f9f 100755 --- a/tutorials/multiphase/interFoam/RAS/damBreak/Allclean +++ b/tutorials/multiphase/interFoam/RAS/damBreak/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/RAS/damBreak/Allrun b/tutorials/multiphase/interFoam/RAS/damBreak/Allrun index 2ba44b6776..a57552feda 100755 --- a/tutorials/multiphase/interFoam/RAS/damBreak/Allrun +++ b/tutorials/multiphase/interFoam/RAS/damBreak/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/RAS/damBreak/damBreak/Allclean b/tutorials/multiphase/interFoam/RAS/damBreak/damBreak/Allclean index f844732f6a..4383e615f1 100755 --- a/tutorials/multiphase/interFoam/RAS/damBreak/damBreak/Allclean +++ b/tutorials/multiphase/interFoam/RAS/damBreak/damBreak/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/RAS/damBreak/damBreak/Allrun b/tutorials/multiphase/interFoam/RAS/damBreak/damBreak/Allrun index edff8a339d..6df35b2f32 100755 --- a/tutorials/multiphase/interFoam/RAS/damBreak/damBreak/Allrun +++ b/tutorials/multiphase/interFoam/RAS/damBreak/damBreak/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/RAS/damBreakPorousBaffle/Allclean b/tutorials/multiphase/interFoam/RAS/damBreakPorousBaffle/Allclean index f844732f6a..4383e615f1 100755 --- a/tutorials/multiphase/interFoam/RAS/damBreakPorousBaffle/Allclean +++ b/tutorials/multiphase/interFoam/RAS/damBreakPorousBaffle/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/RAS/damBreakPorousBaffle/Allrun b/tutorials/multiphase/interFoam/RAS/damBreakPorousBaffle/Allrun index a78d851364..9759cafb1a 100755 --- a/tutorials/multiphase/interFoam/RAS/damBreakPorousBaffle/Allrun +++ b/tutorials/multiphase/interFoam/RAS/damBreakPorousBaffle/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/RAS/floatingObject/Allclean b/tutorials/multiphase/interFoam/RAS/floatingObject/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/interFoam/RAS/floatingObject/Allclean +++ b/tutorials/multiphase/interFoam/RAS/floatingObject/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/RAS/floatingObject/Allrun b/tutorials/multiphase/interFoam/RAS/floatingObject/Allrun index cd227b5d5e..ea261501e5 100755 --- a/tutorials/multiphase/interFoam/RAS/floatingObject/Allrun +++ b/tutorials/multiphase/interFoam/RAS/floatingObject/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/RAS/mixerVesselAMI/Allclean b/tutorials/multiphase/interFoam/RAS/mixerVesselAMI/Allclean index e634258c77..11522da82e 100755 --- a/tutorials/multiphase/interFoam/RAS/mixerVesselAMI/Allclean +++ b/tutorials/multiphase/interFoam/RAS/mixerVesselAMI/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/RAS/mixerVesselAMI/Allrun b/tutorials/multiphase/interFoam/RAS/mixerVesselAMI/Allrun index 4a4de7794e..b4e1a09f84 100755 --- a/tutorials/multiphase/interFoam/RAS/mixerVesselAMI/Allrun +++ b/tutorials/multiphase/interFoam/RAS/mixerVesselAMI/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/RAS/mixerVesselAMI/Allrun.pre b/tutorials/multiphase/interFoam/RAS/mixerVesselAMI/Allrun.pre index ac567c4fcf..ef7ea8491f 100755 --- a/tutorials/multiphase/interFoam/RAS/mixerVesselAMI/Allrun.pre +++ b/tutorials/multiphase/interFoam/RAS/mixerVesselAMI/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/RAS/motorBike/Allclean b/tutorials/multiphase/interFoam/RAS/motorBike/Allclean index deb39ad22d..f217f88343 100755 --- a/tutorials/multiphase/interFoam/RAS/motorBike/Allclean +++ b/tutorials/multiphase/interFoam/RAS/motorBike/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/RAS/motorBike/Allrun b/tutorials/multiphase/interFoam/RAS/motorBike/Allrun index b8d4678f28..a63c8064ba 100755 --- a/tutorials/multiphase/interFoam/RAS/motorBike/Allrun +++ b/tutorials/multiphase/interFoam/RAS/motorBike/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/RAS/motorBike/Allrun.pre b/tutorials/multiphase/interFoam/RAS/motorBike/Allrun.pre index e63846a5ad..4632750cbc 100755 --- a/tutorials/multiphase/interFoam/RAS/motorBike/Allrun.pre +++ b/tutorials/multiphase/interFoam/RAS/motorBike/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/RAS/waterChannel/Allclean b/tutorials/multiphase/interFoam/RAS/waterChannel/Allclean index 1110f3c72e..0ec8239f84 100755 --- a/tutorials/multiphase/interFoam/RAS/waterChannel/Allclean +++ b/tutorials/multiphase/interFoam/RAS/waterChannel/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/RAS/waterChannel/Allmesh b/tutorials/multiphase/interFoam/RAS/waterChannel/Allmesh index b72b34c84e..3f591df2ea 100755 --- a/tutorials/multiphase/interFoam/RAS/waterChannel/Allmesh +++ b/tutorials/multiphase/interFoam/RAS/waterChannel/Allmesh @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/RAS/waterChannel/Allrun b/tutorials/multiphase/interFoam/RAS/waterChannel/Allrun index 133515ae79..eb07613289 100755 --- a/tutorials/multiphase/interFoam/RAS/waterChannel/Allrun +++ b/tutorials/multiphase/interFoam/RAS/waterChannel/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/RAS/weirOverflow/Allclean b/tutorials/multiphase/interFoam/RAS/weirOverflow/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/interFoam/RAS/weirOverflow/Allclean +++ b/tutorials/multiphase/interFoam/RAS/weirOverflow/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/RAS/weirOverflow/Allrun b/tutorials/multiphase/interFoam/RAS/weirOverflow/Allrun index 0818d6f789..7616c97782 100755 --- a/tutorials/multiphase/interFoam/RAS/weirOverflow/Allrun +++ b/tutorials/multiphase/interFoam/RAS/weirOverflow/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/capillaryRise/Allrun b/tutorials/multiphase/interFoam/laminar/capillaryRise/Allrun index 12a2ede0d1..364f98380e 100755 --- a/tutorials/multiphase/interFoam/laminar/capillaryRise/Allrun +++ b/tutorials/multiphase/interFoam/laminar/capillaryRise/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/damBreak/Allclean b/tutorials/multiphase/interFoam/laminar/damBreak/Allclean index 7608832fc4..26e52f3f9f 100755 --- a/tutorials/multiphase/interFoam/laminar/damBreak/Allclean +++ b/tutorials/multiphase/interFoam/laminar/damBreak/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/damBreak/Allrun b/tutorials/multiphase/interFoam/laminar/damBreak/Allrun index 2de83a9405..e8ceda5386 100755 --- a/tutorials/multiphase/interFoam/laminar/damBreak/Allrun +++ b/tutorials/multiphase/interFoam/laminar/damBreak/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/damBreak/damBreak/Allclean b/tutorials/multiphase/interFoam/laminar/damBreak/damBreak/Allclean index f844732f6a..4383e615f1 100755 --- a/tutorials/multiphase/interFoam/laminar/damBreak/damBreak/Allclean +++ b/tutorials/multiphase/interFoam/laminar/damBreak/damBreak/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/damBreak/damBreak/Allrun b/tutorials/multiphase/interFoam/laminar/damBreak/damBreak/Allrun index edff8a339d..6df35b2f32 100755 --- a/tutorials/multiphase/interFoam/laminar/damBreak/damBreak/Allrun +++ b/tutorials/multiphase/interFoam/laminar/damBreak/damBreak/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/damBreakWithObstacle/Allclean b/tutorials/multiphase/interFoam/laminar/damBreakWithObstacle/Allclean index ae8cf886f1..6983aafd78 100755 --- a/tutorials/multiphase/interFoam/laminar/damBreakWithObstacle/Allclean +++ b/tutorials/multiphase/interFoam/laminar/damBreakWithObstacle/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/damBreakWithObstacle/Allrun b/tutorials/multiphase/interFoam/laminar/damBreakWithObstacle/Allrun index 9e66b26663..dd53bd177b 100755 --- a/tutorials/multiphase/interFoam/laminar/damBreakWithObstacle/Allrun +++ b/tutorials/multiphase/interFoam/laminar/damBreakWithObstacle/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/mixerVessel2D/Allrun b/tutorials/multiphase/interFoam/laminar/mixerVessel2D/Allrun index 5f6eab94f9..e7ab7e5b8b 100755 --- a/tutorials/multiphase/interFoam/laminar/mixerVessel2D/Allrun +++ b/tutorials/multiphase/interFoam/laminar/mixerVessel2D/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/mixerVessel2D/makeMesh b/tutorials/multiphase/interFoam/laminar/mixerVessel2D/makeMesh index 5405ca1217..440533a0a6 100755 --- a/tutorials/multiphase/interFoam/laminar/mixerVessel2D/makeMesh +++ b/tutorials/multiphase/interFoam/laminar/mixerVessel2D/makeMesh @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory #------------------------------------------------------------------------------ m4 system/blockMeshDict.m4 > system/blockMeshDict diff --git a/tutorials/multiphase/interFoam/laminar/sloshingCylinder/Allclean b/tutorials/multiphase/interFoam/laminar/sloshingCylinder/Allclean index e923a99f60..cb1f6d7c10 100755 --- a/tutorials/multiphase/interFoam/laminar/sloshingCylinder/Allclean +++ b/tutorials/multiphase/interFoam/laminar/sloshingCylinder/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory foamCleanTutorials -self rm -rf 0/alpha.water 0/alpha.water.gz probes wallPressure pRefProbe diff --git a/tutorials/multiphase/interFoam/laminar/sloshingCylinder/Allrun b/tutorials/multiphase/interFoam/laminar/sloshingCylinder/Allrun index eff0714424..1b1662b703 100755 --- a/tutorials/multiphase/interFoam/laminar/sloshingCylinder/Allrun +++ b/tutorials/multiphase/interFoam/laminar/sloshingCylinder/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/sloshingTank2D/Allclean b/tutorials/multiphase/interFoam/laminar/sloshingTank2D/Allclean index e923a99f60..cb1f6d7c10 100755 --- a/tutorials/multiphase/interFoam/laminar/sloshingTank2D/Allclean +++ b/tutorials/multiphase/interFoam/laminar/sloshingTank2D/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory foamCleanTutorials -self rm -rf 0/alpha.water 0/alpha.water.gz probes wallPressure pRefProbe diff --git a/tutorials/multiphase/interFoam/laminar/sloshingTank2D/Allrun b/tutorials/multiphase/interFoam/laminar/sloshingTank2D/Allrun index b9be9e4afc..becf8fb153 100755 --- a/tutorials/multiphase/interFoam/laminar/sloshingTank2D/Allrun +++ b/tutorials/multiphase/interFoam/laminar/sloshingTank2D/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/sloshingTank2D3DoF/Allclean b/tutorials/multiphase/interFoam/laminar/sloshingTank2D3DoF/Allclean index e923a99f60..cb1f6d7c10 100755 --- a/tutorials/multiphase/interFoam/laminar/sloshingTank2D3DoF/Allclean +++ b/tutorials/multiphase/interFoam/laminar/sloshingTank2D3DoF/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory foamCleanTutorials -self rm -rf 0/alpha.water 0/alpha.water.gz probes wallPressure pRefProbe diff --git a/tutorials/multiphase/interFoam/laminar/sloshingTank2D3DoF/Allrun b/tutorials/multiphase/interFoam/laminar/sloshingTank2D3DoF/Allrun index b9be9e4afc..becf8fb153 100755 --- a/tutorials/multiphase/interFoam/laminar/sloshingTank2D3DoF/Allrun +++ b/tutorials/multiphase/interFoam/laminar/sloshingTank2D3DoF/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/sloshingTank3D/Allclean b/tutorials/multiphase/interFoam/laminar/sloshingTank3D/Allclean index e923a99f60..cb1f6d7c10 100755 --- a/tutorials/multiphase/interFoam/laminar/sloshingTank3D/Allclean +++ b/tutorials/multiphase/interFoam/laminar/sloshingTank3D/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory foamCleanTutorials -self rm -rf 0/alpha.water 0/alpha.water.gz probes wallPressure pRefProbe diff --git a/tutorials/multiphase/interFoam/laminar/sloshingTank3D/Allrun b/tutorials/multiphase/interFoam/laminar/sloshingTank3D/Allrun index b9be9e4afc..becf8fb153 100755 --- a/tutorials/multiphase/interFoam/laminar/sloshingTank3D/Allrun +++ b/tutorials/multiphase/interFoam/laminar/sloshingTank3D/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/sloshingTank3D3DoF/Allclean b/tutorials/multiphase/interFoam/laminar/sloshingTank3D3DoF/Allclean index e923a99f60..cb1f6d7c10 100755 --- a/tutorials/multiphase/interFoam/laminar/sloshingTank3D3DoF/Allclean +++ b/tutorials/multiphase/interFoam/laminar/sloshingTank3D3DoF/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory foamCleanTutorials -self rm -rf 0/alpha.water 0/alpha.water.gz probes wallPressure pRefProbe diff --git a/tutorials/multiphase/interFoam/laminar/sloshingTank3D3DoF/Allrun b/tutorials/multiphase/interFoam/laminar/sloshingTank3D3DoF/Allrun index b9be9e4afc..becf8fb153 100755 --- a/tutorials/multiphase/interFoam/laminar/sloshingTank3D3DoF/Allrun +++ b/tutorials/multiphase/interFoam/laminar/sloshingTank3D3DoF/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/sloshingTank3D6DoF/Allclean b/tutorials/multiphase/interFoam/laminar/sloshingTank3D6DoF/Allclean index e923a99f60..cb1f6d7c10 100755 --- a/tutorials/multiphase/interFoam/laminar/sloshingTank3D6DoF/Allclean +++ b/tutorials/multiphase/interFoam/laminar/sloshingTank3D6DoF/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory foamCleanTutorials -self rm -rf 0/alpha.water 0/alpha.water.gz probes wallPressure pRefProbe diff --git a/tutorials/multiphase/interFoam/laminar/sloshingTank3D6DoF/Allrun b/tutorials/multiphase/interFoam/laminar/sloshingTank3D6DoF/Allrun index b9be9e4afc..becf8fb153 100755 --- a/tutorials/multiphase/interFoam/laminar/sloshingTank3D6DoF/Allrun +++ b/tutorials/multiphase/interFoam/laminar/sloshingTank3D6DoF/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/testTubeMixer/Allclean b/tutorials/multiphase/interFoam/laminar/testTubeMixer/Allclean index 390a5cd309..2e367a21dc 100755 --- a/tutorials/multiphase/interFoam/laminar/testTubeMixer/Allclean +++ b/tutorials/multiphase/interFoam/laminar/testTubeMixer/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/testTubeMixer/Allrun b/tutorials/multiphase/interFoam/laminar/testTubeMixer/Allrun index 9cd6307290..078dd0a254 100755 --- a/tutorials/multiphase/interFoam/laminar/testTubeMixer/Allrun +++ b/tutorials/multiphase/interFoam/laminar/testTubeMixer/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/vofToLagrangian/Allrun b/tutorials/multiphase/interFoam/laminar/vofToLagrangian/Allrun index ff423da5a7..5bbf574a70 100755 --- a/tutorials/multiphase/interFoam/laminar/vofToLagrangian/Allrun +++ b/tutorials/multiphase/interFoam/laminar/vofToLagrangian/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/vofToLagrangian/eulerianInjection/Allclean b/tutorials/multiphase/interFoam/laminar/vofToLagrangian/eulerianInjection/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/interFoam/laminar/vofToLagrangian/eulerianInjection/Allclean +++ b/tutorials/multiphase/interFoam/laminar/vofToLagrangian/eulerianInjection/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/vofToLagrangian/eulerianInjection/Allrun b/tutorials/multiphase/interFoam/laminar/vofToLagrangian/eulerianInjection/Allrun index 338caa0a51..a8ecccc541 100755 --- a/tutorials/multiphase/interFoam/laminar/vofToLagrangian/eulerianInjection/Allrun +++ b/tutorials/multiphase/interFoam/laminar/vofToLagrangian/eulerianInjection/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/vofToLagrangian/lagrangianDistributionInjection/Allclean b/tutorials/multiphase/interFoam/laminar/vofToLagrangian/lagrangianDistributionInjection/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/interFoam/laminar/vofToLagrangian/lagrangianDistributionInjection/Allclean +++ b/tutorials/multiphase/interFoam/laminar/vofToLagrangian/lagrangianDistributionInjection/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/vofToLagrangian/lagrangianDistributionInjection/Allrun b/tutorials/multiphase/interFoam/laminar/vofToLagrangian/lagrangianDistributionInjection/Allrun index 94820b0fe3..9bec2595a8 100755 --- a/tutorials/multiphase/interFoam/laminar/vofToLagrangian/lagrangianDistributionInjection/Allrun +++ b/tutorials/multiphase/interFoam/laminar/vofToLagrangian/lagrangianDistributionInjection/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/vofToLagrangian/lagrangianParticleInjection/Allclean b/tutorials/multiphase/interFoam/laminar/vofToLagrangian/lagrangianParticleInjection/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/interFoam/laminar/vofToLagrangian/lagrangianParticleInjection/Allclean +++ b/tutorials/multiphase/interFoam/laminar/vofToLagrangian/lagrangianParticleInjection/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/vofToLagrangian/lagrangianParticleInjection/Allrun b/tutorials/multiphase/interFoam/laminar/vofToLagrangian/lagrangianParticleInjection/Allrun index 94820b0fe3..9bec2595a8 100755 --- a/tutorials/multiphase/interFoam/laminar/vofToLagrangian/lagrangianParticleInjection/Allrun +++ b/tutorials/multiphase/interFoam/laminar/vofToLagrangian/lagrangianParticleInjection/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/waves/cnoidal/Allclean b/tutorials/multiphase/interFoam/laminar/waves/cnoidal/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/interFoam/laminar/waves/cnoidal/Allclean +++ b/tutorials/multiphase/interFoam/laminar/waves/cnoidal/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/waves/cnoidal/Allrun b/tutorials/multiphase/interFoam/laminar/waves/cnoidal/Allrun index 76989b6f17..4f259966c5 100755 --- a/tutorials/multiphase/interFoam/laminar/waves/cnoidal/Allrun +++ b/tutorials/multiphase/interFoam/laminar/waves/cnoidal/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/waves/irregularMultiDirection/Allclean b/tutorials/multiphase/interFoam/laminar/waves/irregularMultiDirection/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/interFoam/laminar/waves/irregularMultiDirection/Allclean +++ b/tutorials/multiphase/interFoam/laminar/waves/irregularMultiDirection/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/waves/irregularMultiDirection/Allrun b/tutorials/multiphase/interFoam/laminar/waves/irregularMultiDirection/Allrun index 76989b6f17..4f259966c5 100755 --- a/tutorials/multiphase/interFoam/laminar/waves/irregularMultiDirection/Allrun +++ b/tutorials/multiphase/interFoam/laminar/waves/irregularMultiDirection/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/waves/mangroveInteraction/Allclean b/tutorials/multiphase/interFoam/laminar/waves/mangroveInteraction/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/interFoam/laminar/waves/mangroveInteraction/Allclean +++ b/tutorials/multiphase/interFoam/laminar/waves/mangroveInteraction/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/waves/mangroveInteraction/Allrun b/tutorials/multiphase/interFoam/laminar/waves/mangroveInteraction/Allrun index 070006d22b..d84074bfc4 100755 --- a/tutorials/multiphase/interFoam/laminar/waves/mangroveInteraction/Allrun +++ b/tutorials/multiphase/interFoam/laminar/waves/mangroveInteraction/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/waves/solitary/Allclean b/tutorials/multiphase/interFoam/laminar/waves/solitary/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/interFoam/laminar/waves/solitary/Allclean +++ b/tutorials/multiphase/interFoam/laminar/waves/solitary/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/waves/solitary/Allrun b/tutorials/multiphase/interFoam/laminar/waves/solitary/Allrun index 76989b6f17..4f259966c5 100755 --- a/tutorials/multiphase/interFoam/laminar/waves/solitary/Allrun +++ b/tutorials/multiphase/interFoam/laminar/waves/solitary/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/waves/solitaryGrimshaw/Allclean b/tutorials/multiphase/interFoam/laminar/waves/solitaryGrimshaw/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/interFoam/laminar/waves/solitaryGrimshaw/Allclean +++ b/tutorials/multiphase/interFoam/laminar/waves/solitaryGrimshaw/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/waves/solitaryGrimshaw/Allrun b/tutorials/multiphase/interFoam/laminar/waves/solitaryGrimshaw/Allrun index 76989b6f17..4f259966c5 100755 --- a/tutorials/multiphase/interFoam/laminar/waves/solitaryGrimshaw/Allrun +++ b/tutorials/multiphase/interFoam/laminar/waves/solitaryGrimshaw/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/waves/solitaryMcCowan/Allclean b/tutorials/multiphase/interFoam/laminar/waves/solitaryMcCowan/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/interFoam/laminar/waves/solitaryMcCowan/Allclean +++ b/tutorials/multiphase/interFoam/laminar/waves/solitaryMcCowan/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/waves/solitaryMcCowan/Allrun b/tutorials/multiphase/interFoam/laminar/waves/solitaryMcCowan/Allrun index 76989b6f17..4f259966c5 100755 --- a/tutorials/multiphase/interFoam/laminar/waves/solitaryMcCowan/Allrun +++ b/tutorials/multiphase/interFoam/laminar/waves/solitaryMcCowan/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/waves/stokesI/Allclean b/tutorials/multiphase/interFoam/laminar/waves/stokesI/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/interFoam/laminar/waves/stokesI/Allclean +++ b/tutorials/multiphase/interFoam/laminar/waves/stokesI/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/waves/stokesI/Allrun b/tutorials/multiphase/interFoam/laminar/waves/stokesI/Allrun index 76989b6f17..4f259966c5 100755 --- a/tutorials/multiphase/interFoam/laminar/waves/stokesI/Allrun +++ b/tutorials/multiphase/interFoam/laminar/waves/stokesI/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/waves/stokesII/Allclean b/tutorials/multiphase/interFoam/laminar/waves/stokesII/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/interFoam/laminar/waves/stokesII/Allclean +++ b/tutorials/multiphase/interFoam/laminar/waves/stokesII/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/waves/stokesII/Allrun b/tutorials/multiphase/interFoam/laminar/waves/stokesII/Allrun index 76989b6f17..4f259966c5 100755 --- a/tutorials/multiphase/interFoam/laminar/waves/stokesII/Allrun +++ b/tutorials/multiphase/interFoam/laminar/waves/stokesII/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/waves/stokesV/Allclean b/tutorials/multiphase/interFoam/laminar/waves/stokesV/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/interFoam/laminar/waves/stokesV/Allclean +++ b/tutorials/multiphase/interFoam/laminar/waves/stokesV/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/waves/stokesV/Allrun b/tutorials/multiphase/interFoam/laminar/waves/stokesV/Allrun index 76989b6f17..4f259966c5 100755 --- a/tutorials/multiphase/interFoam/laminar/waves/stokesV/Allrun +++ b/tutorials/multiphase/interFoam/laminar/waves/stokesV/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/waves/streamFunction/Allclean b/tutorials/multiphase/interFoam/laminar/waves/streamFunction/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/interFoam/laminar/waves/streamFunction/Allclean +++ b/tutorials/multiphase/interFoam/laminar/waves/streamFunction/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/waves/streamFunction/Allrun b/tutorials/multiphase/interFoam/laminar/waves/streamFunction/Allrun index 76989b6f17..4f259966c5 100755 --- a/tutorials/multiphase/interFoam/laminar/waves/streamFunction/Allrun +++ b/tutorials/multiphase/interFoam/laminar/waves/streamFunction/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/waves/waveMakerFlap/Allclean b/tutorials/multiphase/interFoam/laminar/waves/waveMakerFlap/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/interFoam/laminar/waves/waveMakerFlap/Allclean +++ b/tutorials/multiphase/interFoam/laminar/waves/waveMakerFlap/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/waves/waveMakerFlap/Allrun b/tutorials/multiphase/interFoam/laminar/waves/waveMakerFlap/Allrun index 76989b6f17..4f259966c5 100755 --- a/tutorials/multiphase/interFoam/laminar/waves/waveMakerFlap/Allrun +++ b/tutorials/multiphase/interFoam/laminar/waves/waveMakerFlap/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/waves/waveMakerPiston/Allclean b/tutorials/multiphase/interFoam/laminar/waves/waveMakerPiston/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/interFoam/laminar/waves/waveMakerPiston/Allclean +++ b/tutorials/multiphase/interFoam/laminar/waves/waveMakerPiston/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/waves/waveMakerPiston/Allrun b/tutorials/multiphase/interFoam/laminar/waves/waveMakerPiston/Allrun index 76989b6f17..4f259966c5 100755 --- a/tutorials/multiphase/interFoam/laminar/waves/waveMakerPiston/Allrun +++ b/tutorials/multiphase/interFoam/laminar/waves/waveMakerPiston/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/waves/waveMakerSolitary/Allclean b/tutorials/multiphase/interFoam/laminar/waves/waveMakerSolitary/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/interFoam/laminar/waves/waveMakerSolitary/Allclean +++ b/tutorials/multiphase/interFoam/laminar/waves/waveMakerSolitary/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/waves/waveMakerSolitary/Allrun b/tutorials/multiphase/interFoam/laminar/waves/waveMakerSolitary/Allrun index 76989b6f17..4f259966c5 100755 --- a/tutorials/multiphase/interFoam/laminar/waves/waveMakerSolitary/Allrun +++ b/tutorials/multiphase/interFoam/laminar/waves/waveMakerSolitary/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interIsoFoam/damBreak/Allclean b/tutorials/multiphase/interIsoFoam/damBreak/Allclean index efaad2327a..0230e73bab 100755 --- a/tutorials/multiphase/interIsoFoam/damBreak/Allclean +++ b/tutorials/multiphase/interIsoFoam/damBreak/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interIsoFoam/damBreak/Allrun b/tutorials/multiphase/interIsoFoam/damBreak/Allrun index 3345fa8e32..a76d4d8bb8 100755 --- a/tutorials/multiphase/interIsoFoam/damBreak/Allrun +++ b/tutorials/multiphase/interIsoFoam/damBreak/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interIsoFoam/damBreak/Allrun-parallel b/tutorials/multiphase/interIsoFoam/damBreak/Allrun-parallel index 34abec3a7e..ff13c5b347 100755 --- a/tutorials/multiphase/interIsoFoam/damBreak/Allrun-parallel +++ b/tutorials/multiphase/interIsoFoam/damBreak/Allrun-parallel @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interIsoFoam/damBreakWithObstacle/Allclean b/tutorials/multiphase/interIsoFoam/damBreakWithObstacle/Allclean index ae8cf886f1..6983aafd78 100755 --- a/tutorials/multiphase/interIsoFoam/damBreakWithObstacle/Allclean +++ b/tutorials/multiphase/interIsoFoam/damBreakWithObstacle/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interIsoFoam/damBreakWithObstacle/Allrun b/tutorials/multiphase/interIsoFoam/damBreakWithObstacle/Allrun index 75daae6cfc..f2ad58382c 100755 --- a/tutorials/multiphase/interIsoFoam/damBreakWithObstacle/Allrun +++ b/tutorials/multiphase/interIsoFoam/damBreakWithObstacle/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interIsoFoam/discInConstantFlow/Allclean b/tutorials/multiphase/interIsoFoam/discInConstantFlow/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/interIsoFoam/discInConstantFlow/Allclean +++ b/tutorials/multiphase/interIsoFoam/discInConstantFlow/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interIsoFoam/discInConstantFlow/Allrun b/tutorials/multiphase/interIsoFoam/discInConstantFlow/Allrun index acb7b18f29..4bb87e76e7 100755 --- a/tutorials/multiphase/interIsoFoam/discInConstantFlow/Allrun +++ b/tutorials/multiphase/interIsoFoam/discInConstantFlow/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interIsoFoam/discInConstantFlowCyclicBCs/Allclean b/tutorials/multiphase/interIsoFoam/discInConstantFlowCyclicBCs/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/interIsoFoam/discInConstantFlowCyclicBCs/Allclean +++ b/tutorials/multiphase/interIsoFoam/discInConstantFlowCyclicBCs/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interIsoFoam/discInConstantFlowCyclicBCs/Allrun b/tutorials/multiphase/interIsoFoam/discInConstantFlowCyclicBCs/Allrun index acb7b18f29..4bb87e76e7 100755 --- a/tutorials/multiphase/interIsoFoam/discInConstantFlowCyclicBCs/Allrun +++ b/tutorials/multiphase/interIsoFoam/discInConstantFlowCyclicBCs/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interIsoFoam/discInReversedVortexFlow/Allclean b/tutorials/multiphase/interIsoFoam/discInReversedVortexFlow/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/interIsoFoam/discInReversedVortexFlow/Allclean +++ b/tutorials/multiphase/interIsoFoam/discInReversedVortexFlow/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interIsoFoam/discInReversedVortexFlow/Allrun b/tutorials/multiphase/interIsoFoam/discInReversedVortexFlow/Allrun index ec2df9a879..7b278cc1d5 100755 --- a/tutorials/multiphase/interIsoFoam/discInReversedVortexFlow/Allrun +++ b/tutorials/multiphase/interIsoFoam/discInReversedVortexFlow/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interIsoFoam/iobasin/Allclean b/tutorials/multiphase/interIsoFoam/iobasin/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/interIsoFoam/iobasin/Allclean +++ b/tutorials/multiphase/interIsoFoam/iobasin/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interIsoFoam/iobasin/Allrun b/tutorials/multiphase/interIsoFoam/iobasin/Allrun index e773647e42..0372b54516 100755 --- a/tutorials/multiphase/interIsoFoam/iobasin/Allrun +++ b/tutorials/multiphase/interIsoFoam/iobasin/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interIsoFoam/notchedDiscInSolidBodyRotation/Allclean b/tutorials/multiphase/interIsoFoam/notchedDiscInSolidBodyRotation/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/interIsoFoam/notchedDiscInSolidBodyRotation/Allclean +++ b/tutorials/multiphase/interIsoFoam/notchedDiscInSolidBodyRotation/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interIsoFoam/notchedDiscInSolidBodyRotation/Allrun b/tutorials/multiphase/interIsoFoam/notchedDiscInSolidBodyRotation/Allrun index 1552217297..a0c779bb66 100755 --- a/tutorials/multiphase/interIsoFoam/notchedDiscInSolidBodyRotation/Allrun +++ b/tutorials/multiphase/interIsoFoam/notchedDiscInSolidBodyRotation/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interIsoFoam/sloshingTank2D/Allclean b/tutorials/multiphase/interIsoFoam/sloshingTank2D/Allclean index e923a99f60..cb1f6d7c10 100755 --- a/tutorials/multiphase/interIsoFoam/sloshingTank2D/Allclean +++ b/tutorials/multiphase/interIsoFoam/sloshingTank2D/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory foamCleanTutorials -self rm -rf 0/alpha.water 0/alpha.water.gz probes wallPressure pRefProbe diff --git a/tutorials/multiphase/interIsoFoam/sloshingTank2D/Allrun b/tutorials/multiphase/interIsoFoam/sloshingTank2D/Allrun index b9be9e4afc..becf8fb153 100755 --- a/tutorials/multiphase/interIsoFoam/sloshingTank2D/Allrun +++ b/tutorials/multiphase/interIsoFoam/sloshingTank2D/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interIsoFoam/sphereInReversedVortexFlow/Allclean b/tutorials/multiphase/interIsoFoam/sphereInReversedVortexFlow/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/interIsoFoam/sphereInReversedVortexFlow/Allclean +++ b/tutorials/multiphase/interIsoFoam/sphereInReversedVortexFlow/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interIsoFoam/sphereInReversedVortexFlow/Allrun b/tutorials/multiphase/interIsoFoam/sphereInReversedVortexFlow/Allrun index 37a8187c0f..55a3d25093 100755 --- a/tutorials/multiphase/interIsoFoam/sphereInReversedVortexFlow/Allrun +++ b/tutorials/multiphase/interIsoFoam/sphereInReversedVortexFlow/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interIsoFoam/standingWave/Allclean b/tutorials/multiphase/interIsoFoam/standingWave/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/interIsoFoam/standingWave/Allclean +++ b/tutorials/multiphase/interIsoFoam/standingWave/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interIsoFoam/standingWave/Allrun b/tutorials/multiphase/interIsoFoam/standingWave/Allrun index f798264bae..0748c44097 100755 --- a/tutorials/multiphase/interIsoFoam/standingWave/Allrun +++ b/tutorials/multiphase/interIsoFoam/standingWave/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interIsoFoam/waveExampleStreamFunction/Allclean b/tutorials/multiphase/interIsoFoam/waveExampleStreamFunction/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/interIsoFoam/waveExampleStreamFunction/Allclean +++ b/tutorials/multiphase/interIsoFoam/waveExampleStreamFunction/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interIsoFoam/waveExampleStreamFunction/Allrun b/tutorials/multiphase/interIsoFoam/waveExampleStreamFunction/Allrun index 76989b6f17..4f259966c5 100755 --- a/tutorials/multiphase/interIsoFoam/waveExampleStreamFunction/Allrun +++ b/tutorials/multiphase/interIsoFoam/waveExampleStreamFunction/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interIsoFoam/weirOverflow/Allclean b/tutorials/multiphase/interIsoFoam/weirOverflow/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/interIsoFoam/weirOverflow/Allclean +++ b/tutorials/multiphase/interIsoFoam/weirOverflow/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interIsoFoam/weirOverflow/Allrun b/tutorials/multiphase/interIsoFoam/weirOverflow/Allrun index 0818d6f789..7616c97782 100755 --- a/tutorials/multiphase/interIsoFoam/weirOverflow/Allrun +++ b/tutorials/multiphase/interIsoFoam/weirOverflow/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interMixingFoam/laminar/damBreak/Allclean b/tutorials/multiphase/interMixingFoam/laminar/damBreak/Allclean index af842959fd..5750ad4da4 100755 --- a/tutorials/multiphase/interMixingFoam/laminar/damBreak/Allclean +++ b/tutorials/multiphase/interMixingFoam/laminar/damBreak/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory foamCleanTutorials -self rm -rf alpha.air alpha.other alpha.water \ diff --git a/tutorials/multiphase/interMixingFoam/laminar/damBreak/Allrun b/tutorials/multiphase/interMixingFoam/laminar/damBreak/Allrun index 6910950a2a..e53bbef29c 100755 --- a/tutorials/multiphase/interMixingFoam/laminar/damBreak/Allrun +++ b/tutorials/multiphase/interMixingFoam/laminar/damBreak/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interPhaseChangeDyMFoam/propeller/Allclean b/tutorials/multiphase/interPhaseChangeDyMFoam/propeller/Allclean index 1855670fde..1e6696630a 100755 --- a/tutorials/multiphase/interPhaseChangeDyMFoam/propeller/Allclean +++ b/tutorials/multiphase/interPhaseChangeDyMFoam/propeller/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interPhaseChangeDyMFoam/propeller/Allrun b/tutorials/multiphase/interPhaseChangeDyMFoam/propeller/Allrun index bda6c4a76c..285f182dcb 100755 --- a/tutorials/multiphase/interPhaseChangeDyMFoam/propeller/Allrun +++ b/tutorials/multiphase/interPhaseChangeDyMFoam/propeller/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interPhaseChangeDyMFoam/propeller/Allrun.pre b/tutorials/multiphase/interPhaseChangeDyMFoam/propeller/Allrun.pre index 3489d116c4..dc12b897d8 100755 --- a/tutorials/multiphase/interPhaseChangeDyMFoam/propeller/Allrun.pre +++ b/tutorials/multiphase/interPhaseChangeDyMFoam/propeller/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/Allclean b/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/Allclean index db74977981..9a781c64ab 100755 --- a/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/Allclean +++ b/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/Allrun b/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/Allrun index 063511fb2c..b2e91a27a0 100755 --- a/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/Allrun +++ b/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/multiphaseEulerFoam/damBreak4phase/Allclean b/tutorials/multiphase/multiphaseEulerFoam/damBreak4phase/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/multiphaseEulerFoam/damBreak4phase/Allclean +++ b/tutorials/multiphase/multiphaseEulerFoam/damBreak4phase/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/multiphaseEulerFoam/damBreak4phase/Allrun b/tutorials/multiphase/multiphaseEulerFoam/damBreak4phase/Allrun index fce061485e..9134abbfbf 100755 --- a/tutorials/multiphase/multiphaseEulerFoam/damBreak4phase/Allrun +++ b/tutorials/multiphase/multiphaseEulerFoam/damBreak4phase/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/multiphaseEulerFoam/damBreak4phaseFine/Allclean b/tutorials/multiphase/multiphaseEulerFoam/damBreak4phaseFine/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/multiphaseEulerFoam/damBreak4phaseFine/Allclean +++ b/tutorials/multiphase/multiphaseEulerFoam/damBreak4phaseFine/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/multiphaseEulerFoam/damBreak4phaseFine/Allrun b/tutorials/multiphase/multiphaseEulerFoam/damBreak4phaseFine/Allrun index a2c1d8661f..e2f1c31545 100755 --- a/tutorials/multiphase/multiphaseEulerFoam/damBreak4phaseFine/Allrun +++ b/tutorials/multiphase/multiphaseEulerFoam/damBreak4phaseFine/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/Allrun b/tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/Allrun index 190a9840fd..d2bc727d9d 100755 --- a/tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/Allrun +++ b/tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/makeMesh b/tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/makeMesh index 5405ca1217..440533a0a6 100755 --- a/tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/makeMesh +++ b/tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/makeMesh @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory #------------------------------------------------------------------------------ m4 system/blockMeshDict.m4 > system/blockMeshDict diff --git a/tutorials/multiphase/multiphaseInterDyMFoam/laminar/mixerVesselAMI2D/Allrun b/tutorials/multiphase/multiphaseInterDyMFoam/laminar/mixerVesselAMI2D/Allrun index 688586b18f..850def831f 100755 --- a/tutorials/multiphase/multiphaseInterDyMFoam/laminar/mixerVesselAMI2D/Allrun +++ b/tutorials/multiphase/multiphaseInterDyMFoam/laminar/mixerVesselAMI2D/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/multiphaseInterDyMFoam/laminar/mixerVesselAMI2D/makeMesh b/tutorials/multiphase/multiphaseInterDyMFoam/laminar/mixerVesselAMI2D/makeMesh index d9fc3c0658..010f38bd5f 100755 --- a/tutorials/multiphase/multiphaseInterDyMFoam/laminar/mixerVesselAMI2D/makeMesh +++ b/tutorials/multiphase/multiphaseInterDyMFoam/laminar/mixerVesselAMI2D/makeMesh @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phase/Allclean b/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phase/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phase/Allclean +++ b/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phase/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phase/Allrun b/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phase/Allrun index fce061485e..9134abbfbf 100755 --- a/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phase/Allrun +++ b/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phase/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phaseFine/Allclean b/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phaseFine/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phaseFine/Allclean +++ b/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phaseFine/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phaseFine/Allrun b/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phaseFine/Allrun index a2c1d8661f..e2f1c31545 100755 --- a/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phaseFine/Allrun +++ b/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phaseFine/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/multiphaseInterFoam/laminar/mixerVessel2D/Allclean b/tutorials/multiphase/multiphaseInterFoam/laminar/mixerVessel2D/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/multiphaseInterFoam/laminar/mixerVessel2D/Allclean +++ b/tutorials/multiphase/multiphaseInterFoam/laminar/mixerVessel2D/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/multiphaseInterFoam/laminar/mixerVessel2D/Allrun b/tutorials/multiphase/multiphaseInterFoam/laminar/mixerVessel2D/Allrun index df665b2da0..ddfba61a52 100755 --- a/tutorials/multiphase/multiphaseInterFoam/laminar/mixerVessel2D/Allrun +++ b/tutorials/multiphase/multiphaseInterFoam/laminar/mixerVessel2D/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/multiphaseInterFoam/laminar/mixerVessel2D/makeMesh b/tutorials/multiphase/multiphaseInterFoam/laminar/mixerVessel2D/makeMesh index 5405ca1217..440533a0a6 100755 --- a/tutorials/multiphase/multiphaseInterFoam/laminar/mixerVessel2D/makeMesh +++ b/tutorials/multiphase/multiphaseInterFoam/laminar/mixerVessel2D/makeMesh @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory #------------------------------------------------------------------------------ m4 system/blockMeshDict.m4 > system/blockMeshDict diff --git a/tutorials/multiphase/overInterDyMFoam/boatAndPropeller/Allclean b/tutorials/multiphase/overInterDyMFoam/boatAndPropeller/Allclean index 7a3d92a9d3..385a30a2f2 100755 --- a/tutorials/multiphase/overInterDyMFoam/boatAndPropeller/Allclean +++ b/tutorials/multiphase/overInterDyMFoam/boatAndPropeller/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/overInterDyMFoam/boatAndPropeller/Allrun b/tutorials/multiphase/overInterDyMFoam/boatAndPropeller/Allrun index 50bfcac894..036a1f7e4e 100755 --- a/tutorials/multiphase/overInterDyMFoam/boatAndPropeller/Allrun +++ b/tutorials/multiphase/overInterDyMFoam/boatAndPropeller/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/overInterDyMFoam/boatAndPropeller/Allrun.pre b/tutorials/multiphase/overInterDyMFoam/boatAndPropeller/Allrun.pre index a5847cd765..aa410bf072 100755 --- a/tutorials/multiphase/overInterDyMFoam/boatAndPropeller/Allrun.pre +++ b/tutorials/multiphase/overInterDyMFoam/boatAndPropeller/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/overInterDyMFoam/floatingBody/Allclean b/tutorials/multiphase/overInterDyMFoam/floatingBody/Allclean index 97c7554280..2b26855817 100755 --- a/tutorials/multiphase/overInterDyMFoam/floatingBody/Allclean +++ b/tutorials/multiphase/overInterDyMFoam/floatingBody/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory #. ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/overInterDyMFoam/floatingBody/Allrun b/tutorials/multiphase/overInterDyMFoam/floatingBody/Allrun index 9863c44e48..0d76f4c072 100755 --- a/tutorials/multiphase/overInterDyMFoam/floatingBody/Allrun +++ b/tutorials/multiphase/overInterDyMFoam/floatingBody/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/overInterDyMFoam/floatingBody/Allrun.pre b/tutorials/multiphase/overInterDyMFoam/floatingBody/Allrun.pre index 9ee4a8f61e..fd734c8225 100755 --- a/tutorials/multiphase/overInterDyMFoam/floatingBody/Allrun.pre +++ b/tutorials/multiphase/overInterDyMFoam/floatingBody/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/overInterDyMFoam/floatingBody/background/Allclean b/tutorials/multiphase/overInterDyMFoam/floatingBody/background/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/overInterDyMFoam/floatingBody/background/Allclean +++ b/tutorials/multiphase/overInterDyMFoam/floatingBody/background/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/overInterDyMFoam/floatingBody/background/Allrun.pre b/tutorials/multiphase/overInterDyMFoam/floatingBody/background/Allrun.pre index 6d6ebda91e..49cd5f48ba 100755 --- a/tutorials/multiphase/overInterDyMFoam/floatingBody/background/Allrun.pre +++ b/tutorials/multiphase/overInterDyMFoam/floatingBody/background/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/overInterDyMFoam/floatingBody/floatingBody/Allclean b/tutorials/multiphase/overInterDyMFoam/floatingBody/floatingBody/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/overInterDyMFoam/floatingBody/floatingBody/Allclean +++ b/tutorials/multiphase/overInterDyMFoam/floatingBody/floatingBody/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/overInterDyMFoam/floatingBody/floatingBody/Allrun.pre b/tutorials/multiphase/overInterDyMFoam/floatingBody/floatingBody/Allrun.pre index 7f29eaf2f2..1f396f9a69 100755 --- a/tutorials/multiphase/overInterDyMFoam/floatingBody/floatingBody/Allrun.pre +++ b/tutorials/multiphase/overInterDyMFoam/floatingBody/floatingBody/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/overInterDyMFoam/floatingBodyWithSpring/Allclean b/tutorials/multiphase/overInterDyMFoam/floatingBodyWithSpring/Allclean index 97c7554280..2b26855817 100755 --- a/tutorials/multiphase/overInterDyMFoam/floatingBodyWithSpring/Allclean +++ b/tutorials/multiphase/overInterDyMFoam/floatingBodyWithSpring/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory #. ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/overInterDyMFoam/floatingBodyWithSpring/Allrun b/tutorials/multiphase/overInterDyMFoam/floatingBodyWithSpring/Allrun index 9863c44e48..0d76f4c072 100755 --- a/tutorials/multiphase/overInterDyMFoam/floatingBodyWithSpring/Allrun +++ b/tutorials/multiphase/overInterDyMFoam/floatingBodyWithSpring/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/overInterDyMFoam/floatingBodyWithSpring/Allrun.pre b/tutorials/multiphase/overInterDyMFoam/floatingBodyWithSpring/Allrun.pre index 9ee4a8f61e..fd734c8225 100755 --- a/tutorials/multiphase/overInterDyMFoam/floatingBodyWithSpring/Allrun.pre +++ b/tutorials/multiphase/overInterDyMFoam/floatingBodyWithSpring/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/overInterDyMFoam/floatingBodyWithSpring/background/Allclean b/tutorials/multiphase/overInterDyMFoam/floatingBodyWithSpring/background/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/overInterDyMFoam/floatingBodyWithSpring/background/Allclean +++ b/tutorials/multiphase/overInterDyMFoam/floatingBodyWithSpring/background/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/overInterDyMFoam/floatingBodyWithSpring/background/Allrun.pre b/tutorials/multiphase/overInterDyMFoam/floatingBodyWithSpring/background/Allrun.pre index 6d6ebda91e..49cd5f48ba 100755 --- a/tutorials/multiphase/overInterDyMFoam/floatingBodyWithSpring/background/Allrun.pre +++ b/tutorials/multiphase/overInterDyMFoam/floatingBodyWithSpring/background/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/overInterDyMFoam/floatingBodyWithSpring/floatingBody/Allclean b/tutorials/multiphase/overInterDyMFoam/floatingBodyWithSpring/floatingBody/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/overInterDyMFoam/floatingBodyWithSpring/floatingBody/Allclean +++ b/tutorials/multiphase/overInterDyMFoam/floatingBodyWithSpring/floatingBody/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/overInterDyMFoam/floatingBodyWithSpring/floatingBody/Allrun.pre b/tutorials/multiphase/overInterDyMFoam/floatingBodyWithSpring/floatingBody/Allrun.pre index 7f29eaf2f2..1f396f9a69 100755 --- a/tutorials/multiphase/overInterDyMFoam/floatingBodyWithSpring/floatingBody/Allrun.pre +++ b/tutorials/multiphase/overInterDyMFoam/floatingBodyWithSpring/floatingBody/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/overInterDyMFoam/twoSimpleRotors/Allclean b/tutorials/multiphase/overInterDyMFoam/twoSimpleRotors/Allclean index 7a3d92a9d3..385a30a2f2 100755 --- a/tutorials/multiphase/overInterDyMFoam/twoSimpleRotors/Allclean +++ b/tutorials/multiphase/overInterDyMFoam/twoSimpleRotors/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/overInterDyMFoam/twoSimpleRotors/Allrun b/tutorials/multiphase/overInterDyMFoam/twoSimpleRotors/Allrun index fa234b3f30..ec34dab2ef 100755 --- a/tutorials/multiphase/overInterDyMFoam/twoSimpleRotors/Allrun +++ b/tutorials/multiphase/overInterDyMFoam/twoSimpleRotors/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/overInterDyMFoam/twoSimpleRotors/Allrun.pre b/tutorials/multiphase/overInterDyMFoam/twoSimpleRotors/Allrun.pre index 308bbee9fd..c0a6663fb9 100755 --- a/tutorials/multiphase/overInterDyMFoam/twoSimpleRotors/Allrun.pre +++ b/tutorials/multiphase/overInterDyMFoam/twoSimpleRotors/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/potentialFreeSurfaceDyMFoam/oscillatingBox/Allclean b/tutorials/multiphase/potentialFreeSurfaceDyMFoam/oscillatingBox/Allclean index d989e2132d..330d7581f2 100755 --- a/tutorials/multiphase/potentialFreeSurfaceDyMFoam/oscillatingBox/Allclean +++ b/tutorials/multiphase/potentialFreeSurfaceDyMFoam/oscillatingBox/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/potentialFreeSurfaceDyMFoam/oscillatingBox/Allrun b/tutorials/multiphase/potentialFreeSurfaceDyMFoam/oscillatingBox/Allrun index 6cf23587d9..4273ab57ca 100755 --- a/tutorials/multiphase/potentialFreeSurfaceDyMFoam/oscillatingBox/Allrun +++ b/tutorials/multiphase/potentialFreeSurfaceDyMFoam/oscillatingBox/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/potentialFreeSurfaceFoam/oscillatingBox/Allclean b/tutorials/multiphase/potentialFreeSurfaceFoam/oscillatingBox/Allclean index d989e2132d..330d7581f2 100755 --- a/tutorials/multiphase/potentialFreeSurfaceFoam/oscillatingBox/Allclean +++ b/tutorials/multiphase/potentialFreeSurfaceFoam/oscillatingBox/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/potentialFreeSurfaceFoam/oscillatingBox/Allrun b/tutorials/multiphase/potentialFreeSurfaceFoam/oscillatingBox/Allrun index f1d525aa64..fed43374f7 100755 --- a/tutorials/multiphase/potentialFreeSurfaceFoam/oscillatingBox/Allrun +++ b/tutorials/multiphase/potentialFreeSurfaceFoam/oscillatingBox/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/reactingMultiphaseEulerFoam/RAS/wallBoiling1D_2phase/Allclean b/tutorials/multiphase/reactingMultiphaseEulerFoam/RAS/wallBoiling1D_2phase/Allclean index 6634746c67..734157e46f 100755 --- a/tutorials/multiphase/reactingMultiphaseEulerFoam/RAS/wallBoiling1D_2phase/Allclean +++ b/tutorials/multiphase/reactingMultiphaseEulerFoam/RAS/wallBoiling1D_2phase/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/reactingMultiphaseEulerFoam/RAS/wallBoiling1D_2phase/Allrun b/tutorials/multiphase/reactingMultiphaseEulerFoam/RAS/wallBoiling1D_2phase/Allrun index 5f673d892c..f6a8c6ec15 100755 --- a/tutorials/multiphase/reactingMultiphaseEulerFoam/RAS/wallBoiling1D_2phase/Allrun +++ b/tutorials/multiphase/reactingMultiphaseEulerFoam/RAS/wallBoiling1D_2phase/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/reactingMultiphaseEulerFoam/RAS/wallBoiling1D_3phase/Allclean b/tutorials/multiphase/reactingMultiphaseEulerFoam/RAS/wallBoiling1D_3phase/Allclean index 6634746c67..734157e46f 100755 --- a/tutorials/multiphase/reactingMultiphaseEulerFoam/RAS/wallBoiling1D_3phase/Allclean +++ b/tutorials/multiphase/reactingMultiphaseEulerFoam/RAS/wallBoiling1D_3phase/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/reactingMultiphaseEulerFoam/RAS/wallBoiling1D_3phase/Allrun b/tutorials/multiphase/reactingMultiphaseEulerFoam/RAS/wallBoiling1D_3phase/Allrun index 5f673d892c..f6a8c6ec15 100755 --- a/tutorials/multiphase/reactingMultiphaseEulerFoam/RAS/wallBoiling1D_3phase/Allrun +++ b/tutorials/multiphase/reactingMultiphaseEulerFoam/RAS/wallBoiling1D_3phase/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/reactingMultiphaseEulerFoam/laminar/mixerVessel2D/Allrun b/tutorials/multiphase/reactingMultiphaseEulerFoam/laminar/mixerVessel2D/Allrun index 190a9840fd..d2bc727d9d 100755 --- a/tutorials/multiphase/reactingMultiphaseEulerFoam/laminar/mixerVessel2D/Allrun +++ b/tutorials/multiphase/reactingMultiphaseEulerFoam/laminar/mixerVessel2D/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/reactingMultiphaseEulerFoam/laminar/mixerVessel2D/makeMesh b/tutorials/multiphase/reactingMultiphaseEulerFoam/laminar/mixerVessel2D/makeMesh index 5405ca1217..440533a0a6 100755 --- a/tutorials/multiphase/reactingMultiphaseEulerFoam/laminar/mixerVessel2D/makeMesh +++ b/tutorials/multiphase/reactingMultiphaseEulerFoam/laminar/mixerVessel2D/makeMesh @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory #------------------------------------------------------------------------------ m4 system/blockMeshDict.m4 > system/blockMeshDict diff --git a/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/bubbleColumnPolydisperse/Allrun b/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/bubbleColumnPolydisperse/Allrun index 5922d2615b..8d169afc39 100755 --- a/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/bubbleColumnPolydisperse/Allrun +++ b/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/bubbleColumnPolydisperse/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoiling/Allclean b/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoiling/Allclean index cea650d5a4..352495d4cb 100755 --- a/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoiling/Allclean +++ b/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoiling/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoiling/Allrun b/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoiling/Allrun index 411fec5102..faea476efc 100755 --- a/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoiling/Allrun +++ b/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoiling/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoiling1D/Allclean b/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoiling1D/Allclean index 6634746c67..734157e46f 100755 --- a/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoiling1D/Allclean +++ b/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoiling1D/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoiling1D/Allrun b/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoiling1D/Allrun index 5f673d892c..f6a8c6ec15 100755 --- a/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoiling1D/Allrun +++ b/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoiling1D/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoilingIATE/Allclean b/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoilingIATE/Allclean index cea650d5a4..352495d4cb 100755 --- a/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoilingIATE/Allclean +++ b/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoilingIATE/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoilingIATE/Allrun b/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoilingIATE/Allrun index 7117b0060d..aed818c3f1 100755 --- a/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoilingIATE/Allrun +++ b/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoilingIATE/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/reactingTwoPhaseEulerFoam/laminar/bubbleColumn/Allrun b/tutorials/multiphase/reactingTwoPhaseEulerFoam/laminar/bubbleColumn/Allrun index edff8a339d..6df35b2f32 100755 --- a/tutorials/multiphase/reactingTwoPhaseEulerFoam/laminar/bubbleColumn/Allrun +++ b/tutorials/multiphase/reactingTwoPhaseEulerFoam/laminar/bubbleColumn/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/reactingTwoPhaseEulerFoam/laminar/mixerVessel2D/Allrun b/tutorials/multiphase/reactingTwoPhaseEulerFoam/laminar/mixerVessel2D/Allrun index 190a9840fd..d2bc727d9d 100755 --- a/tutorials/multiphase/reactingTwoPhaseEulerFoam/laminar/mixerVessel2D/Allrun +++ b/tutorials/multiphase/reactingTwoPhaseEulerFoam/laminar/mixerVessel2D/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/reactingTwoPhaseEulerFoam/laminar/mixerVessel2D/makeMesh b/tutorials/multiphase/reactingTwoPhaseEulerFoam/laminar/mixerVessel2D/makeMesh index 5405ca1217..440533a0a6 100755 --- a/tutorials/multiphase/reactingTwoPhaseEulerFoam/laminar/mixerVessel2D/makeMesh +++ b/tutorials/multiphase/reactingTwoPhaseEulerFoam/laminar/mixerVessel2D/makeMesh @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory #------------------------------------------------------------------------------ m4 system/blockMeshDict.m4 > system/blockMeshDict diff --git a/tutorials/multiphase/twoLiquidMixingFoam/lockExchange/Allclean b/tutorials/multiphase/twoLiquidMixingFoam/lockExchange/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/multiphase/twoLiquidMixingFoam/lockExchange/Allclean +++ b/tutorials/multiphase/twoLiquidMixingFoam/lockExchange/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/twoLiquidMixingFoam/lockExchange/Allrun b/tutorials/multiphase/twoLiquidMixingFoam/lockExchange/Allrun index fce061485e..9134abbfbf 100755 --- a/tutorials/multiphase/twoLiquidMixingFoam/lockExchange/Allrun +++ b/tutorials/multiphase/twoLiquidMixingFoam/lockExchange/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/twoPhaseEulerFoam/laminar/mixerVessel2D/Allrun b/tutorials/multiphase/twoPhaseEulerFoam/laminar/mixerVessel2D/Allrun index 190a9840fd..d2bc727d9d 100755 --- a/tutorials/multiphase/twoPhaseEulerFoam/laminar/mixerVessel2D/Allrun +++ b/tutorials/multiphase/twoPhaseEulerFoam/laminar/mixerVessel2D/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/twoPhaseEulerFoam/laminar/mixerVessel2D/makeMesh b/tutorials/multiphase/twoPhaseEulerFoam/laminar/mixerVessel2D/makeMesh index 5405ca1217..440533a0a6 100755 --- a/tutorials/multiphase/twoPhaseEulerFoam/laminar/mixerVessel2D/makeMesh +++ b/tutorials/multiphase/twoPhaseEulerFoam/laminar/mixerVessel2D/makeMesh @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory #------------------------------------------------------------------------------ m4 system/blockMeshDict.m4 > system/blockMeshDict diff --git a/tutorials/preProcessing/createZeroDirectory/cavity/Allclean b/tutorials/preProcessing/createZeroDirectory/cavity/Allclean index 9d457171af..fb1f384730 100755 --- a/tutorials/preProcessing/createZeroDirectory/cavity/Allclean +++ b/tutorials/preProcessing/createZeroDirectory/cavity/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/preProcessing/createZeroDirectory/cavity/Allrun b/tutorials/preProcessing/createZeroDirectory/cavity/Allrun index f9ff928bea..8d865f270e 100755 --- a/tutorials/preProcessing/createZeroDirectory/cavity/Allrun +++ b/tutorials/preProcessing/createZeroDirectory/cavity/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/preProcessing/createZeroDirectory/motorBike/Allclean b/tutorials/preProcessing/createZeroDirectory/motorBike/Allclean index 11b2d1ad38..98085ff247 100755 --- a/tutorials/preProcessing/createZeroDirectory/motorBike/Allclean +++ b/tutorials/preProcessing/createZeroDirectory/motorBike/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/preProcessing/createZeroDirectory/motorBike/Allrun b/tutorials/preProcessing/createZeroDirectory/motorBike/Allrun index 15e9c628a8..77d273e307 100755 --- a/tutorials/preProcessing/createZeroDirectory/motorBike/Allrun +++ b/tutorials/preProcessing/createZeroDirectory/motorBike/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/preProcessing/createZeroDirectory/snappyMultiRegionHeater/Allclean b/tutorials/preProcessing/createZeroDirectory/snappyMultiRegionHeater/Allclean index e2a4d85996..3449cee039 100755 --- a/tutorials/preProcessing/createZeroDirectory/snappyMultiRegionHeater/Allclean +++ b/tutorials/preProcessing/createZeroDirectory/snappyMultiRegionHeater/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/preProcessing/createZeroDirectory/snappyMultiRegionHeater/Allrun b/tutorials/preProcessing/createZeroDirectory/snappyMultiRegionHeater/Allrun index f5b3299714..ecf9a7f456 100755 --- a/tutorials/preProcessing/createZeroDirectory/snappyMultiRegionHeater/Allrun +++ b/tutorials/preProcessing/createZeroDirectory/snappyMultiRegionHeater/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/preProcessing/decompositionConstraints/geometric/Allclean b/tutorials/preProcessing/decompositionConstraints/geometric/Allclean index 3648982ef8..6653fe271e 100755 --- a/tutorials/preProcessing/decompositionConstraints/geometric/Allclean +++ b/tutorials/preProcessing/decompositionConstraints/geometric/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/preProcessing/decompositionConstraints/geometric/Allrun b/tutorials/preProcessing/decompositionConstraints/geometric/Allrun index e403886b8e..2e2bb0c5a2 100755 --- a/tutorials/preProcessing/decompositionConstraints/geometric/Allrun +++ b/tutorials/preProcessing/decompositionConstraints/geometric/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/stressAnalysis/solidDisplacementFoam/plateHole/Allclean b/tutorials/stressAnalysis/solidDisplacementFoam/plateHole/Allclean index e8557c2554..426e7ad42e 100755 --- a/tutorials/stressAnalysis/solidDisplacementFoam/plateHole/Allclean +++ b/tutorials/stressAnalysis/solidDisplacementFoam/plateHole/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/stressAnalysis/solidDisplacementFoam/plateHole/Allrun b/tutorials/stressAnalysis/solidDisplacementFoam/plateHole/Allrun index 985ede6c4b..18bca0c229 100755 --- a/tutorials/stressAnalysis/solidDisplacementFoam/plateHole/Allrun +++ b/tutorials/stressAnalysis/solidDisplacementFoam/plateHole/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/verificationAndValidation/schemes/divergenceExample/Allrun b/tutorials/verificationAndValidation/schemes/divergenceExample/Allrun index 647966b2c0..f55dca2c1f 100755 --- a/tutorials/verificationAndValidation/schemes/divergenceExample/Allrun +++ b/tutorials/verificationAndValidation/schemes/divergenceExample/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ diff --git a/tutorials/verificationAndValidation/turbulentInflow/Allclean b/tutorials/verificationAndValidation/turbulentInflow/Allclean index 2538225cb4..f66f87c3a8 100755 --- a/tutorials/verificationAndValidation/turbulentInflow/Allclean +++ b/tutorials/verificationAndValidation/turbulentInflow/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/verificationAndValidation/turbulentInflow/Allrun b/tutorials/verificationAndValidation/turbulentInflow/Allrun index ad7ceae124..14bf702a0f 100755 --- a/tutorials/verificationAndValidation/turbulentInflow/Allrun +++ b/tutorials/verificationAndValidation/turbulentInflow/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions . ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions #------------------------------------------------------------------------------ diff --git a/tutorials/verificationAndValidation/turbulentInflow/plot b/tutorials/verificationAndValidation/turbulentInflow/plot index 066dfeae7b..3855ddd15c 100755 --- a/tutorials/verificationAndValidation/turbulentInflow/plot +++ b/tutorials/verificationAndValidation/turbulentInflow/plot @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory #------------------------------------------------------------------------------ plotStresses() { diff --git a/wmake/scripts/wrap-bison b/wmake/scripts/wrap-bison index bf65e816e6..740ad0f851 100755 --- a/wmake/scripts/wrap-bison +++ b/wmake/scripts/wrap-bison @@ -118,7 +118,7 @@ tmpDir="Make/bisonWrapper-$baseName" rm -rf "$tmpDir" 2>/dev/null mkdir "$tmpDir" 2>/dev/null -cd "$tmpDir" || exit 1 +cd "$tmpDir" || exit rc=1 # DO WE WANT THIS? @@ -127,7 +127,7 @@ rc=1 bison "$@" "../../$inputFile" rc=$? -cd "../.." || exit 1 +cd "../.." || exit if [ "$rc" -ne 0 ] then diff --git a/wmake/src/Allmake b/wmake/src/Allmake index 8e164107e2..4ef5a56975 100755 --- a/wmake/src/Allmake +++ b/wmake/src/Allmake @@ -1,5 +1,5 @@ #!/bin/sh -cd "${0%/*}" || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory if [ -z "$WM_DIR" ] # Require WM_DIR then diff --git a/wmake/src/createCode b/wmake/src/createCode index 622d5cdd32..66a4cadb67 100755 --- a/wmake/src/createCode +++ b/wmake/src/createCode @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory +cd "${0%/*}" || exit # Run from this directory # Manually create ragel scanner