Blame view

build/script/postinstall.ts 272 Bytes
陈文彬 authored
1
2
3
4
import { exec, which } from 'shelljs';

function ignoreCaseGit() {
  try {
5
    if (which('git').code === 0) {
陈文彬 authored
6
7
      exec('git config core.ignorecase false ');
    }
8
9
10
11
12
13
14
  } catch (error) {
    console.log(error);
  }
}

export function runPostInstall() {
  ignoreCaseGit();
陈文彬 authored
15
}