@hurshb50/setup-ubuntu 1.5.1 → 1.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -11,7 +11,7 @@ import util from "util";
|
|
|
11
11
|
import childProcess from "child_process";
|
|
12
12
|
//#region package.json
|
|
13
13
|
var name = "@hurshb50/setup-ubuntu";
|
|
14
|
-
var version = "1.5.
|
|
14
|
+
var version = "1.5.2";
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region source/modules/logger/logger.ts
|
|
17
17
|
var Logger = class Logger {
|
|
@@ -600,15 +600,14 @@ var SmartChangeDirectory = class {
|
|
|
600
600
|
const task = new Task("Smart Change Directory");
|
|
601
601
|
context.logger.add(task);
|
|
602
602
|
task.start();
|
|
603
|
-
const
|
|
604
|
-
|
|
603
|
+
const binaryDirectoryPath = path.join(context.directories.home, ".local", "bin");
|
|
604
|
+
const binaryFilePath = path.join(binaryDirectoryPath, "zoxide");
|
|
605
|
+
if (await fs.stat(binaryFilePath, { throwIfNoEntry: false }) !== void 0) {
|
|
605
606
|
task.finish();
|
|
606
607
|
return;
|
|
607
608
|
}
|
|
608
|
-
task.continue("
|
|
609
|
-
await
|
|
610
|
-
task.continue(`Installing dependencies: ${dependencies.join(", ")}`);
|
|
611
|
-
await context.dependencyManager.install(dependencies, task);
|
|
609
|
+
task.continue("Install zoxide");
|
|
610
|
+
await util.promisify(childProcess.exec)(`curl -sSfL https://raw.githubusercontent.com/ajeetdsouza/zoxide/main/install.sh | sh -s -- --bin-dir ${binaryDirectoryPath}`);
|
|
612
611
|
task.finish();
|
|
613
612
|
}
|
|
614
613
|
};
|