mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 17:38:44 +00:00
release tool: fix 'log exists' check to not create the log before it checks ;)
This commit is contained in:
parent
868778c5b6
commit
a4e09d9a8a
@ -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)
|
||||
MVN='mvn3'
|
||||
except RuntimeError:
|
||||
pass
|
||||
|
||||
subprocess.check_output('mvn3 --version', shell=True, stderr=subprocess.STDOUT)
|
||||
MVN = 'mvn3'
|
||||
except subprocess.CalledProcessError:
|
||||
MVN = 'mvn'
|
||||
|
||||
def java_exe():
|
||||
path = JAVA_HOME
|
||||
|
Loading…
x
Reference in New Issue
Block a user