mirror of
https://github.com/orhun/git-cliff.git
synced 2025-01-07 12:16:49 +03:00
fix(npm): fix the variable declaration for NPM package OS
This commit is contained in:
parent
24c8e3e4cf
commit
f40a56588e
@ -12,8 +12,7 @@ import { spawnSync } from "child_process"
|
|||||||
*/
|
*/
|
||||||
function getExePath() {
|
function getExePath() {
|
||||||
const arch = process.arch;
|
const arch = process.arch;
|
||||||
const os = process.platform;
|
let os = process.platform;
|
||||||
|
|
||||||
let extension = '';
|
let extension = '';
|
||||||
if (['win32', 'cygwin'].includes(process.platform)) {
|
if (['win32', 'cygwin'].includes(process.platform)) {
|
||||||
os = 'windows';
|
os = 'windows';
|
||||||
|
Loading…
Reference in New Issue
Block a user