Skip to content

Commit

Permalink
fix: updated task-core
Browse files Browse the repository at this point in the history
  • Loading branch information
tlawrie committed Aug 7, 2024
1 parent cebd0fb commit 9043148
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
9 changes: 4 additions & 5 deletions commands/shell.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ import shelljs from "shelljs";

export function execute() {
log.debug("Inside Shell Plugin");

const { path, shell, script } = params;

let dir;
if (!path || path === '""') {
dir = "/flow/data";
log.debug("No directory specified. Defaulting...");
log.debug("No directory specified. Defaulting to /data...");
dir = "/data";
} else {
dir = path;
}
Expand All @@ -23,15 +22,15 @@ export function execute() {
shelljs.config.silent = false;

let config = {
verbose: false
verbose: false,
};
if (!shell || shell === '""') {
log.debug("No shell interpreter specified. Defaulting...");
} else {
config.shell = shell;
}
log.debug("Script to execute:", script);
shelljs.exec(script, config, function(code, stdout, stderr) {
shelljs.exec(script, config, function (code, stdout, stderr) {
if (code != 0) {
log.err(" Exit code:", code);
log.err(" Program stderr:", stderr);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"license": "Apache-2.0",
"type": "module",
"dependencies": {
"@boomerang-io/task-cli": "^1.0.0-alpha.24",
"@boomerang-io/task-core": "^2.0.0-alpha.8",
"@boomerang-io/task-cli": "^1.0.0-alpha.30",
"@boomerang-io/task-core": "^2.0.0-alpha.13",
"@octokit/graphql": "^8.1.1",
"@octokit/rest": "^21.0.1",
"@sendgrid/client": "^8.1.3",
Expand Down
22 changes: 11 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9043148

Please sign in to comment.