From 4052a0f919b555baa40b434e6a00d3efacfa506d Mon Sep 17 00:00:00 2001 From: Piet Groot Kormelink Date: Tue, 13 Jun 2023 08:52:53 +0200 Subject: [PATCH] Update installer.ts wait for uninstall to finish --- src/installer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/installer.ts b/src/installer.ts index 3912579..509c381 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]; @@ -38,4 +38,4 @@ export class CocoapodsInstaller { return null; } -} \ No newline at end of file +}