Skip to content

Commit c252ece

Browse files
committed
Use dir+prefix instead of template for tmp 0.2.x compat
1 parent 688c113 commit c252ece

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)