summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xprojects/determineversion.vbs4
1 files changed, 2 insertions, 2 deletions
diff --git a/projects/determineversion.vbs b/projects/determineversion.vbs
index c2a87d3db..bcc68456c 100755
--- a/projects/determineversion.vbs
+++ b/projects/determineversion.vbs
@@ -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