From 573b1af1b8b4500b5ce90e893aa6a1759ce47cc7 Mon Sep 17 00:00:00 2001 From: Zach Allaun Date: Thu, 14 Nov 2024 14:20:18 -0500 Subject: [PATCH] Ensure install.sh halts if either of OTP or Elixir fails to install --- install.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 6e5910d69..a662ec521 100755 --- a/install.sh +++ b/install.sh @@ -107,8 +107,13 @@ main() { if unzip_available; then install_otp & + pid_otp=$! + install_elixir & - wait + pid_elixir=$! + + wait $pid_otp + wait $pid_elixir else # if unzip is missing (e.g. official docker ubuntu image), install otp and elixir # serially because we unzip elixir using OTP zip:extract/2.