Skip to content

Commit 5e75a8a

Browse files
committed
changes for azure plugin
1 parent e19481c commit 5e75a8a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/tunnel_binary.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ function TunnelBinary(httpTunnelConfig, options) {
8989
try {
9090
console.log(`Downloading latest binary`);
9191
// make Dir if not there.
92-
if (this.checkPath_(destParentDir)) {
93-
this.rmDir(destParentDir);
92+
if (!this.checkPath_(destParentDir)) {
93+
fs.mkdirSync(destParentDir, { recursive: true });
9494
}
95-
fs.mkdirSync(destParentDir, { recursive: true });
95+
9696
// Generate binary path.
9797
var binaryPath = path.join(destParentDir, this.binaryName);
9898
var fileStream = fs.createWriteStream(binaryPath);
@@ -140,7 +140,7 @@ function TunnelBinary(httpTunnelConfig, options) {
140140
console.log(`Extracting binary`);
141141
try {
142142
var zip = new AdmZip(binaryPath);
143-
zip.extractAllTo(destParentDir, true);
143+
zip.extractAllTo(destParentDir, false);
144144
fs.chmod(destBinaryPath, '0755', function() {
145145
return fnCallback(destBinaryPath)
146146
});

0 commit comments

Comments
 (0)