ext.js 433 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
const cmdExists = require('command-exists')

module.exports = {
  key: 'git',
  title: 'Git',
  description: 'Distributed version control system. Required for the Git storage module.',
  isInstalled: false,
  async isCompatible () {
    return true
  },
  async check () {
    try {
      await cmdExists('git')
      this.isInstalled = true
    } catch (err) {
      this.isInstalled = false
    }
    return this.isInstalled
  }
}