mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[jrubyscripting] Filter files that are added to the watch list (#14590)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
This commit is contained in:
parent
31454ac0a1
commit
72254b820d
@ -66,6 +66,7 @@ public class JRubyScriptFileWatcher extends AbstractScriptFileWatcher {
|
||||
if (scriptEngineFactory.isFileInGemHome(path) || scriptEngineFactory.isFileInLoadPath(path)) {
|
||||
return Optional.empty();
|
||||
}
|
||||
return super.getScriptType(scriptFilePath);
|
||||
|
||||
return super.getScriptType(scriptFilePath).filter(type -> scriptEngineFactory.getScriptTypes().contains(type));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user