11 строки
350 B
JavaScript
11 строки
350 B
JavaScript
const $ = require('shelljs')
|
|
|
|
const { code, stdout } = $.exec('git lfs --version', { silent: true })
|
|
|
|
if (code === 0 && stdout.startsWith('git-lfs')) {
|
|
process.exit(0)
|
|
} else {
|
|
console.log('Please install Git LFS for committing {gif,mp4,jpg,png} files. See https://github.com/microsoft/vscode-docs#cloning for instructions.')
|
|
process.exit(1)
|
|
}
|