Skip to content

Commit

Permalink
Merge pull request #28 from dmeyer-pfg/20-intermittent-error-while-ex…
Browse files Browse the repository at this point in the history
…ecuting-gem

await uninstall command
  • Loading branch information
maxim-lobanov authored Nov 27, 2023
2 parents 31e8210 + 1a7171a commit 947bf88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"]);
Expand Down
2 changes: 1 addition & 1 deletion src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 947bf88

Please sign in to comment.