diff --git a/src/drivers/github.js b/src/drivers/github.js index 53e66f6cf..ce064f763 100644 --- a/src/drivers/github.js +++ b/src/drivers/github.js @@ -286,7 +286,7 @@ class Github { '--work', resolve(workdir, '_work'), // adds `--ephemeral` to the array only if `single` is set - ...(single && ['--ephemeral']) + ...(single ? ['--ephemeral'] : []) ); return spawn(resolve(workdir, 'run.sh'), { diff --git a/src/terraform.js b/src/terraform.js index ef3216705..3ab47c13c 100644 --- a/src/terraform.js +++ b/src/terraform.js @@ -64,7 +64,7 @@ const destroy = async (opts = {}) => { dir, 'destroy', '-auto-approve', - ...(target && ['-target', target]) + ...(target ? ['-target', target] : []) ); };