mirror of
https://github.com/PaulHatch/semantic-version.git
synced 2025-12-29 05:48:17 +00:00
Cleanup using os temp path
This commit is contained in:
parent
ae095094f7
commit
8ce630d670
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ const createTestRepo = (inputs) => {
|
||||||
let i = 1;
|
let i = 1;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
clean: () => execute('/tmp', `rm -rf ${repoDirectory}`),
|
clean: () => execute(os.tmpdir(), `rm -rf ${repoDirectory}`),
|
||||||
makeCommit: (msg, path) => {
|
makeCommit: (msg, path) => {
|
||||||
run(`touch ${path !== undefined ? path.trim('/') + '/' : ''}test${i++}`);
|
run(`touch ${path !== undefined ? path.trim('/') + '/' : ''}test${i++}`);
|
||||||
run(`git add --all`);
|
run(`git add --all`);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue