mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-06 00:52:58 +00:00
Changed comparison in initial check to <=, a cib with an equal mtime could not have been converted from an IB file, it would have a later mtime.
This commit is contained in:
1 parent
73746e00b0
commit
a7161e3ca7
1 file changed
+2
-2
@@ -160,13 +160,13 @@ function watch(options)
|
||||
count = nibs.length;
|
||||
|
||||
// First time through only IB files with no corresponding cib
|
||||
// or a cib with an earlier mtime are converted.
|
||||
// or a cib with an earlier or equal mtime are converted.
|
||||
while (count--)
|
||||
{
|
||||
var nib = nibs[count],
|
||||
cib = nib.substr(0, nib.length - 4) + ".cib";
|
||||
|
||||
if (FILE.exists(cib) && (FILE.mtime(nib) - FILE.mtime(cib)) < 0)
|
||||
if (FILE.exists(cib) && (FILE.mtime(nib) - FILE.mtime(cib)) <= 0)
|
||||
nibInfo[nib] = FILE.mtime(nib);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user