Skip linguist when there are no activity and fix handle of plugin_habits_facts/plugin_habits_charts options

This commit is contained in:
linguist
2020-12-23 00:30:56 +01:00
parent bdd11b7bd5
commit 619113295c
3 changed files with 10 additions and 7 deletions

View File

@@ -71,7 +71,7 @@
if (charts) {
//Check if linguist exists
const prefix = {win32:"wsl"}[process.platform] ?? ""
if (await imports.run(`${prefix} which github-linguist`)) {
if ((patches.length)&&(await imports.run(`${prefix} which github-linguist`))) {
//Setup for linguist
habits.linguist.available = true
const path = imports.paths.join(imports.os.tmpdir(), `${actor}`)