This commit is contained in:
Ruben Fiszel
2023-05-15 00:43:49 +02:00
parent 47e87ff80e
commit 87c1e3f4d7
+2 -3
View File
@@ -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(