mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +01:00
fix UP-TP-DATE check
This commit is contained in:
parent
8263463be9
commit
a936504c4c
@ -65,7 +65,7 @@ public class Node {
|
|||||||
File target = new File( System.getProperty( "java.io.tmpdir" ) + "/node" );
|
File target = new File( System.getProperty( "java.io.tmpdir" ) + "/node" );
|
||||||
File commandDir = new File( target.getAbsolutePath() + MessageFormat.format( "/node-v{1}-{2}", BASE_URL, REVISION, fileName, ext ) );
|
File commandDir = new File( target.getAbsolutePath() + MessageFormat.format( "/node-v{1}-{2}", BASE_URL, REVISION, fileName, ext ) );
|
||||||
|
|
||||||
if( commandDir.isDirectory() && commandDir.listFiles().length > 0 ) {
|
if( commandDir.isDirectory() && commandDir.list().length > 1 ) {
|
||||||
// no download needed
|
// no download needed
|
||||||
System.out.println( "\tUP-TP-DATE, use version from " + commandDir );
|
System.out.println( "\tUP-TP-DATE, use version from " + commandDir );
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user