Skip to content
Snippets Groups Projects
Commit 315e4ee2 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

BUG: fix otbenv.bat, problem with closing parenthesis in PATH

parent ae6f572c
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. :: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
:: See the License for the specific language governing permissions and :: See the License for the specific language governing permissions and
:: limitations under the License. :: limitations under the License.
@echo off
:: Setup environment for OTB package :: Setup environment for OTB package
set CURRENT_SCRIPT_DIR=%~dp0 set CURRENT_SCRIPT_DIR=%~dp0
...@@ -36,7 +36,11 @@ setlocal enabledelayedexpansion ...@@ -36,7 +36,11 @@ setlocal enabledelayedexpansion
set output=%~2 set output=%~2
set var=%1 set var=%1
set content= set content=
if defined %var% ( set content=!%var%! ) if not defined %var% ( goto :prefix_path_testcontent )
if not "%content%" == "" ( set output=%output%;%content% ) set content=!%var%!
:prefix_path_testcontent
if "%content%" == "" ( goto :prefix_path_end )
set output=%output%;%content%
:prefix_path_end
endlocal & set %1=%output% endlocal & set %1=%output%
goto :eof goto :eof
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment