(svn r14780) -Fix (r14777): of course VBS evaluates all parts of a boolean expression

This commit is contained in:
glx 2009-01-01 18:18:17 +00:00
parent 56d108edf8
commit 34b211ea99

View File

@ -273,12 +273,12 @@ Function IsCachedVersion(ByVal version)
End Function
Function CheckFile(filename)
CheckFile = FSO.FileExists(filename) And (FSO.GetFile(filename).DateLastModified >= FSO.GetFile(filename & ".in").DateLastModified)
CheckFile = FSO.FileExists(filename)
If CheckFile Then CheckFile = (FSO.GetFile(filename).DateLastModified >= FSO.GetFile(filename & ".in").DateLastModified)
End Function
Dim version
version = DetermineSVNVersion
If Not (IsCachedVersion(version) And CheckFile("../src/rev.cpp") And CheckFile("../src/ottdres.rc")) Then
wscript.echo "update"
UpdateFiles version
End If