Skip to content

Commit

Permalink
Fixed .bat files to correctly set environment variables without double
Browse files Browse the repository at this point in the history
quotes
  • Loading branch information
mbeccati committed Aug 12, 2010
1 parent 32a7691 commit 32b7c5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dbunit.bat
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ REM ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
REM POSSIBILITY OF SUCH DAMAGE.
REM

if "%PHPBIN%" == "" set PHPBIN="@php_bin@"
if "%PHPBIN%" == "" set PHPBIN=@php_bin@
if not exist "%PHPBIN%" if "%PHP_PEAR_PHP_BIN%" neq "" goto USE_PEAR_PATH
GOTO RUN
:USE_PEAR_PATH
set PHPBIN="%PHP_PEAR_PHP_BIN%"
set PHPBIN=%PHP_PEAR_PHP_BIN%
:RUN
%PHPBIN% "@bin_dir@\dbunit" %*
"%PHPBIN%" "@bin_dir@\dbunit" %*
6 changes: 3 additions & 3 deletions phpunit.bat
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ REM ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
REM POSSIBILITY OF SUCH DAMAGE.
REM

if "%PHPBIN%" == "" set PHPBIN="@php_bin@"
if "%PHPBIN%" == "" set PHPBIN=@php_bin@
if not exist "%PHPBIN%" if "%PHP_PEAR_PHP_BIN%" neq "" goto USE_PEAR_PATH
GOTO RUN
:USE_PEAR_PATH
set PHPBIN="%PHP_PEAR_PHP_BIN%"
set PHPBIN=%PHP_PEAR_PHP_BIN%
:RUN
%PHPBIN% "@bin_dir@\phpunit" %*
"%PHPBIN%" "@bin_dir@\phpunit" %*

0 comments on commit 32b7c5d

Please sign in to comment.