mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 10:43:03 +01:00
Patch. previoulsy when the directory parameter have spaces (as in the example) the script fail.
This commit is contained in:
parent
36843b786c
commit
7eee2c42d5
@ -17,8 +17,20 @@
|
||||
@if /I "%1"=="-?" (goto :HELP & goto :EOF)
|
||||
@if /I "%1"=="/?" (goto :HELP & goto :EOF)
|
||||
|
||||
if "%1" NEQ "" (set FIREBIRD=%1)
|
||||
if "%FIREBIRD%"=="" (goto :HELP & goto :EOF)
|
||||
@if "%1" NEQ "" (set FIREBIRD=%1)
|
||||
:: BRS
|
||||
:: Get all the file name when there are spaces
|
||||
:: this can be also achieved with %* but I don't know which versions of
|
||||
:: windows allows it
|
||||
:LOOP
|
||||
@shift
|
||||
@if "%1"=="" (goto DONE)
|
||||
@set FIREBIRD= %FIREBIRD% %1
|
||||
@goto loop
|
||||
:DONE
|
||||
|
||||
@echo FIREBIRD=%FIREBIRD%
|
||||
@if "%FIREBIRD%"=="" (goto :HELP & goto :EOF)
|
||||
|
||||
::===========
|
||||
:MAIN
|
||||
|
Loading…
Reference in New Issue
Block a user