mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-30 10:23:41 -04:00
release tool: fix 'log exists' check to not create the log before it checks ;)
This commit is contained in:
parent
868778c5b6
commit
a4e09d9a8a
1 changed files with 4 additions and 6 deletions
|
@ -99,14 +99,12 @@ except KeyError:
|
|||
|
||||
|
||||
try:
|
||||
MVN='mvn'
|
||||
# make sure mvn3 is used if mvn3 is available
|
||||
# some systems use maven 2 as default
|
||||
run('mvn3 --version', quiet=True)
|
||||
subprocess.check_output('mvn3 --version', shell=True, stderr=subprocess.STDOUT)
|
||||
MVN = 'mvn3'
|
||||
except RuntimeError:
|
||||
pass
|
||||
|
||||
except subprocess.CalledProcessError:
|
||||
MVN = 'mvn'
|
||||
|
||||
def java_exe():
|
||||
path = JAVA_HOME
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue