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"]); 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];