Skip to content

Commit

Permalink
Fix windows 'build-native.bat' (#727)
Browse files Browse the repository at this point in the history
* Fix: continue execution after 'ndk-build'

* Check if 'ovpnlibs' exists before delete
  • Loading branch information
mbg033 authored and schwabe committed Jul 18, 2017
1 parent 39d936d commit 406c798
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main/misc/build-native.bat
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ if not exist openvpn\.git (
)

if [%1] == [] (
ndk-build USE_SHORT_COMMANDS=1 -j 8 USE_BREAKPAD=0
call ndk-build USE_SHORT_COMMANDS=1 -j 8 USE_BREAKPAD=0
) else (
ndk-build USE_SHORT_COMMANDS=1 %*
call ndk-build USE_SHORT_COMMANDS=1 %*
)

if not errorlevel 0 goto error

rmdir /Q /S ovpnlibs
if exist ovpnlibs rmdir /Q /S ovpnlibs

cd libs
mkdir ..\ovpnlibs
Expand Down

0 comments on commit 406c798

Please sign in to comment.