From 1753847f4dc7dc420fec547f83436794a1e16322 Mon Sep 17 00:00:00 2001 From: "Meyer, Dustin" Date: Tue, 9 May 2023 09:50:46 -0500 Subject: [PATCH 1/2] await uninstall command --- src/installer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/installer.ts b/src/installer.ts index 3912579..fae9db4 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -12,7 +12,7 @@ export class CocoapodsInstaller { } // Remove pre-installed version of Cocoapods - exec.exec("gem", ["uninstall", "cocoapods", "--all", "--executables", "--ignore-dependencies"]); + await exec.exec("gem", ["uninstall", "cocoapods", "--all", "--executables", "--ignore-dependencies"]); // Install new version of Cocoapods const versionArguments = (versionSpec === "latest") ? [] : ["-v", versionSpec]; From 1a7171a97084d3b3160ba99f55f2d4518c8cebac Mon Sep 17 00:00:00 2001 From: "Meyer, Dustin" Date: Tue, 9 May 2023 13:00:49 -0500 Subject: [PATCH 2/2] bundle dist --- dist/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index 2d6de26..7171406 100644 --- a/dist/index.js +++ b/dist/index.js @@ -42,7 +42,7 @@ class CocoapodsInstaller { return; } // Remove pre-installed version of Cocoapods - exec.exec("gem", ["uninstall", "cocoapods", "--all", "--executables", "--ignore-dependencies"]); + await exec.exec("gem", ["uninstall", "cocoapods", "--all", "--executables", "--ignore-dependencies"]); // Install new version of Cocoapods const versionArguments = (versionSpec === "latest") ? [] : ["-v", versionSpec]; await exec.exec("gem", ["install", "cocoapods", ...versionArguments, "--no-document"]);