From 9ac3b6b1d5d64d7467dd80506f8a8d772c4630bd Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Tue, 1 Oct 2024 16:53:07 +0200 Subject: [PATCH] fix(cli): improve schedule path handling on windows --- cli/schedule.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cli/schedule.ts b/cli/schedule.ts index fe2db1af19..25ffdd5b49 100644 --- a/cli/schedule.ts +++ b/cli/schedule.ts @@ -1,5 +1,5 @@ // deno-lint-ignore-file no-explicit-any -import { colors, Command, log, Table } from "./deps.ts"; +import { colors, Command, log, SEP, Table } from "./deps.ts"; import { requireLogin, resolveWorkspace, validatePath } from "./context.ts"; import * as wmill from "./gen/services.gen.ts"; @@ -42,8 +42,7 @@ export async function pushSchedule( schedule: Schedule | ScheduleFile | undefined, localSchedule: ScheduleFile ): Promise { - path = removeType(path, "schedule"); - + path = removeType(path, "schedule").replaceAll(SEP, "/"); log.debug(`Processing local schedule ${path}`); // deleting old app if it exists in raw mode