daca2: dont upload results if password is not set
This commit is contained in:
parent
b8ee500d45
commit
4c62190e32
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue