Skip to content

Commit 074acc6

Browse files
authored
Merge pull request #707 from clearlydefined/fix/tmp-template-option-compat
Fix temp file creation broken by tmp 0.2.x upgrade
2 parents 688c113 + c252ece commit 074acc6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/baseHandler.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ class BaseHandler {
2727
const tmpBase = config.get('TEMPDIR') || (process.platform === 'win32' ? 'c:/temp/' : '/tmp/')
2828
return {
2929
unsafeCleanup: true,
30-
template: tmpBase + 'cd-XXXXXX'
30+
dir: tmpBase,
31+
prefix: 'cd-'
3132
}
3233
}
3334

0 commit comments

Comments
 (0)