mirror of
https://github.com/ragestudio/relic.git
synced 2025-07-11 02:04:17 +00:00
fix gitcmd
This commit is contained in:
parent
4ab392ba8b
commit
48505fa80d
src/main/pkg_mng/installs_steps_methods
@ -6,9 +6,8 @@ import { execa } from "../../lib/execa"
|
|||||||
import sendToRender from "../../utils/sendToRender"
|
import sendToRender from "../../utils/sendToRender"
|
||||||
import Vars from "../../vars"
|
import Vars from "../../vars"
|
||||||
|
|
||||||
const gitCMD = fs.existsSync(Vars.git_path) ? `${Vars.git_path}` : "git"
|
|
||||||
|
|
||||||
export default async (manifest, step) => {
|
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))
|
const final_path = upath.normalizeSafe(path.resolve(manifest.install_path, step.path))
|
||||||
|
|
||||||
if (!fs.existsSync(final_path)) {
|
if (!fs.existsSync(final_path)) {
|
||||||
|
@ -6,9 +6,8 @@ import sendToRender from "../../utils/sendToRender"
|
|||||||
|
|
||||||
import Vars from "../../vars"
|
import Vars from "../../vars"
|
||||||
|
|
||||||
const gitCMD = fs.existsSync(Vars.git_path) ? `${Vars.git_path}` : "git"
|
|
||||||
|
|
||||||
export default async (manifest, step) => {
|
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 _path = path.resolve(manifest.install_path, step.path)
|
||||||
|
|
||||||
sendToRender(`pkg:update:status`, {
|
sendToRender(`pkg:update:status`, {
|
||||||
|
@ -7,9 +7,9 @@ import sendToRender from "../../utils/sendToRender"
|
|||||||
import git_pull from "./git_pull"
|
import git_pull from "./git_pull"
|
||||||
import Vars from "../../vars"
|
import Vars from "../../vars"
|
||||||
|
|
||||||
const gitCMD = fs.existsSync(Vars.git_path) ? `${Vars.git_path}` : "git"
|
|
||||||
|
|
||||||
export default async (manifest, step) => {
|
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 _path = path.resolve(manifest.install_path, step.path)
|
||||||
const from = step.from ?? "HEAD"
|
const from = step.from ?? "HEAD"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user