2019-03-26 01:45:18 +03:00
|
|
|
const $ = require('shelljs')
|
|
|
|
|
|
|
|
const { code, stdout } = $.exec('git lfs --version', { silent: true })
|
|
|
|
|
|
|
|
if (code === 0 && stdout.startsWith('git-lfs')) {
|
|
|
|
process.exit(0)
|
|
|
|
} else {
|
2022-01-05 16:15:32 +03:00
|
|
|
console.log('Please install Git LFS for committing {gif,mp4,jpg,png} files. See https://github.com/microsoft/vscode-docs#cloning for instructions.')
|
2019-03-26 01:45:18 +03:00
|
|
|
process.exit(1)
|
2022-01-05 16:15:32 +03:00
|
|
|
}
|