Skip to content

Commit

Permalink
Update commands.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
its-me2000 authored and Stian-Schikora committed Jan 3, 2023
1 parent 8ca5398 commit b8fdcd7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/commands/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,15 +226,16 @@ export function deployUnpackagableJob(): EXTENSION_CONTEXT | Promise<string> {
resolve('No unpack');
});
}
const relPath = unpackPath.startsWith('/') ? unpackPath : '/' + unpackPath;
if(!folderExists(workspacePath as string + unpackPath)) {
dxmateOutput.appendLine('Could not find valid directory at: ' + workspacePath as string + unpackPath + '\nSkipping unpackagable deploy');
dxmateOutput.appendLine('Could not find valid directory at: ' + workspacePath as string + relPath + '\nSkipping unpackagable deploy');
dxmateOutput.show();
return new Promise<string>((resolve, reject) => {
resolve('Unpack not found');
});
}

let cmd = 'sfdx force:source:deploy -p ' + unpackPath;
let cmd = 'sfdx force:source:deploy -p ' + workspacePath as string + relPath;
let shellJob = new Job('Deploy Unpackagable Metadata', new ShellCommand(cmd));
return EXTENSION_CONTEXT.addJob(shellJob);
}
Expand Down Expand Up @@ -339,4 +340,4 @@ function getSoqlFiles() {

return soqlFiles;
});
}
}

0 comments on commit b8fdcd7

Please sign in to comment.