search for exact wat2wasm executable

This commit is contained in:
Volker Berlin 2020-06-18 22:39:30 +02:00
parent 72732a2829
commit 01565f090c

View File

@ -107,7 +107,8 @@ class Wat2Wasm {
if( file.isDirectory() ) { if( file.isDirectory() ) {
searchExecuteable( file ); searchExecuteable( file );
} else { } else {
if( file.getName().contains( "wat2wasm" ) ) { String name = file.getName();
if( name.equals( "wat2wasm" ) || name.equals( "wat2wasm.exe" ) ) {
command = file.getAbsolutePath(); command = file.getAbsolutePath();
} }
} }