@salla.sa/cli
Advanced tools
Comparing version 1.2.85 to 1.2.86
@@ -15,5 +15,5 @@ #!/usr/bin/env node | ||
const myArgs = process.argv.slice(2); | ||
const distPath = __dirname; | ||
async function runCLI() { | ||
if (!fs.existsSync(__dirname + "/salla-" + opsys)) { | ||
if (!fs.existsSync(distPath + "/salla-" + opsys)) { | ||
const dl = require("download-file-with-progressbar"); | ||
@@ -28,3 +28,3 @@ await (async () => { | ||
os.tmpdir() + "/salla-" + opsys, | ||
__dirname + "/dist/salla-" + opsys, | ||
distPath + "/salla-" + opsys, | ||
(err) => {} | ||
@@ -44,3 +44,3 @@ ); | ||
} | ||
spawn(__dirname + "/dist/salla-" + opsys, [...myArgs], { | ||
spawn(distPath + "/salla-" + opsys, [...myArgs], { | ||
stdio: "inherit", | ||
@@ -47,0 +47,0 @@ stderr: "inherit", |
{ | ||
"name": "@salla.sa/cli", | ||
"version": "1.2.85", | ||
"version": "1.2.86", | ||
"description": "The Official Salla Command Line Interface", | ||
@@ -5,0 +5,0 @@ "author": "Salla App (https://github.com/SallaApp)", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
171
159772631