Skip to content

Commit

Permalink
Fix remaining options
Browse files Browse the repository at this point in the history
  • Loading branch information
0x2b3bfa0 authored Dec 6, 2022
1 parent 856b1e1 commit dbba86b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/cml.js
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ class CML {
return await exec('git', 'fetch', '--all', '--unshallow');
}
} else {
return await exec('git', 'fetch', '--all', `--depth=${fetchDepth}`);
return await exec('git', 'fetch', '--all', '--depth', fetchDepth);
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions src/terraform.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const saveTfState = async (opts = {}) => {

const init = async (opts = {}) => {
const { dir = './' } = opts;
return await exec('terraform', `-chdir=${dir}`, 'init');
return await exec('terraform', '-chdir', dir, 'init');
};

const apply = async (opts = {}) => {
Expand All @@ -58,13 +58,13 @@ const apply = async (opts = {}) => {

const destroy = async (opts = {}) => {
const { dir = './', target } = opts;
const targetop = target ? `-target=${target}` : '';
return await exec(
'terraform',
`-chdir=${dir}`,
'-chdir',
dir,
'destroy',
'-auto-approve',
targetop
...(target && ['-target', target])
);
};

Expand Down

2 comments on commit dbba86b

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Comment

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Comment

Please sign in to comment.