fix gitcmd

This commit is contained in:
SrGooglo 2024-02-02 16:27:23 +01:00
parent 4ab392ba8b
commit 48505fa80d
3 changed files with 4 additions and 6 deletions

View File

@ -6,9 +6,8 @@ import { execa } from "../../lib/execa"
import sendToRender from "../../utils/sendToRender"
import Vars from "../../vars"
const gitCMD = fs.existsSync(Vars.git_path) ? `${Vars.git_path}` : "git"
export default async (manifest, step) => {
const gitCMD = fs.existsSync(Vars.git_path) ? `${Vars.git_path}` : "git"
const final_path = upath.normalizeSafe(path.resolve(manifest.install_path, step.path))
if (!fs.existsSync(final_path)) {

View File

@ -6,9 +6,8 @@ import sendToRender from "../../utils/sendToRender"
import Vars from "../../vars"
const gitCMD = fs.existsSync(Vars.git_path) ? `${Vars.git_path}` : "git"
export default async (manifest, step) => {
const gitCMD = fs.existsSync(Vars.git_path) ? `${Vars.git_path}` : "git"
const _path = path.resolve(manifest.install_path, step.path)
sendToRender(`pkg:update:status`, {

View File

@ -7,9 +7,9 @@ import sendToRender from "../../utils/sendToRender"
import git_pull from "./git_pull"
import Vars from "../../vars"
const gitCMD = fs.existsSync(Vars.git_path) ? `${Vars.git_path}` : "git"
export default async (manifest, step) => {
const gitCMD = fs.existsSync(Vars.git_path) ? `${Vars.git_path}` : "git"
const _path = path.resolve(manifest.install_path, step.path)
const from = step.from ?? "HEAD"