mirror of
https://github.com/ragestudio/relic.git
synced 2025-06-09 02:24:18 +00:00
fix gitcmd
This commit is contained in:
parent
4ab392ba8b
commit
48505fa80d
@ -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)) {
|
||||
|
@ -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`, {
|
||||
|
@ -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"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user