From 87c1e3f4d75fc74a988dd0c1a5e883abae9eded2 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Mon, 15 May 2023 00:43:49 +0200 Subject: [PATCH] nit cli --- cli/script.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cli/script.ts b/cli/script.ts index d0b376b656..117180f9c6 100644 --- a/cli/script.ts +++ b/cli/script.ts @@ -28,9 +28,8 @@ export interface ScriptFile { type PushOptions = GlobalOptions; async function push(opts: PushOptions, filePath: string) { const workspace = await resolveWorkspace(opts); - const remotePath = filePath.split(".")[0]; - if (!validatePath(remotePath)) { + if (!validatePath(filePath)) { return; } @@ -47,7 +46,7 @@ async function push(opts: PushOptions, filePath: string) { await requireLogin(opts); await handleFile(filePath, workspace.workspaceId, []); - log.info(colors.bold.underline.green(`Script ${remotePath} pushed`)); + log.info(colors.bold.underline.green(`Script ${filePath} pushed`)); } export async function handleScriptMetadata(