diff --git a/scripts/targets/debian-12.ts b/scripts/targets/debian-12.ts index d36b701..4085665 100644 --- a/scripts/targets/debian-12.ts +++ b/scripts/targets/debian-12.ts @@ -149,14 +149,14 @@ export const clone = (config: schema) => { console.log('Cloning klipper') await $`mkdir -p ${config.install.base}/repos/ && cd ${config.install.base}/repos/ && git clone ${config.services.klipper!.repo} --branch ${config.services.klipper!.branch} --depth 1` for (const patch of config.services.klipper?.patches ?? []) { - await $`cd ${config.install.base}/repos/ && git apply ${import.meta.dir}/../../patches/klipper/${patch}.patch` + await $`cd ${config.install.base}/repos/klipper && git apply ${import.meta.dir}/../../patches/klipper/${patch}.patch` } }, moonraker: async () => { console.log('Cloning moonraker') await $`mkdir -p ${config.install.base}/repos/ && cd ${config.install.base}/repos/ && git clone ${config.services.moonraker!.repo} --branch ${config.services.moonraker!.branch} --depth 1` for (const patch of config.services.moonraker?.patches ?? []) { - await $`cd ${config.install.base}/repos/ && git apply ${import.meta.dir}/../../patches/moonraker/${patch}.patch` + await $`cd ${config.install.base}/repos/moonraker && git apply ${import.meta.dir}/../../patches/moonraker/${patch}.patch` } }, fluidd: async () => { @@ -176,14 +176,14 @@ export const pull = (config: schema) => { console.log('Pulling klipper') await $`cd ${config.install.base}/repos/ && git reset --hard HEAD~1 && git pull` for (const patch of config.services.klipper?.patches ?? []) { - await $`cd ${config.install.base}/repos/ && git apply ${import.meta.dir}/../../patches/klipper/${patch}.patch` + await $`cd ${config.install.base}/repos/klipper && git apply ${import.meta.dir}/../../patches/klipper/${patch}.patch` } }, moonraker: async () => { console.log('Pulling moonraker') await $`cd ${config.install.base}/repos/ && git reset --hard HEAD~1 && git pull` for (const patch of config.services.moonraker?.patches ?? []) { - await $`cd ${config.install.base}/repos/ && git apply ${import.meta.dir}/../../patches/moonraker/${patch}.patch` + await $`cd ${config.install.base}/repos/moonraker && git apply ${import.meta.dir}/../../patches/moonraker/${patch}.patch` } } }