daca2: dont upload results if password is not set

This commit is contained in:
Daniel Marjamäki 2017-06-03 15:53:43 +02:00
parent b8ee500d45
commit 4c62190e32
1 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,8 @@ def daca2report(daca2folder, reportfolder):
# Upload file to sourceforge server using scp # Upload file to sourceforge server using scp
def upload(localfolder, webfolder): def upload(localfolder, webfolder):
if len(PASSWORD)<3:
return
try: try:
child = pexpect.spawn( child = pexpect.spawn(
'scp -r ' + localfolder + ' danielmarjamaki,cppcheck@web.sf.net:htdocs/' + webfolder) 'scp -r ' + localfolder + ' danielmarjamaki,cppcheck@web.sf.net:htdocs/' + webfolder)