From b603e03348ee4ca44da63cdff01e5d79b2c97f1b Mon Sep 17 00:00:00 2001 From: Jacob Herrington Date: Mon, 22 Jun 2020 18:47:57 -0500 Subject: [PATCH] Conditionally install foreman during setup (#8391) We should avoid install foreman during `bin/setup` if it is already installed. --- bin/setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/setup b/bin/setup index 96005270a..bc1e0aec8 100755 --- a/bin/setup +++ b/bin/setup @@ -20,7 +20,7 @@ chdir APP_ROOT do system! "bundle config --local cache_all_platforms true" system("bundle check") || system!("bundle install") - system! "gem install foreman" + system! "gem list \"^foreman$\" -v 0.87.1 -i --silent || gem install foreman" # Install JavaScript dependencies if using Yarn system("bin/yarn")