From 3512250de150ee75c8351f478d75ef4b8154353c Mon Sep 17 00:00:00 2001 From: HashMapsData2Value <83883690+HashMapsData2Value@users.noreply.github.com> Date: Wed, 6 Nov 2024 18:29:31 +0100 Subject: [PATCH] fix: add -y --- cmd/node.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/node.go b/cmd/node.go index f67e1e27..42045f6a 100644 --- a/cmd/node.go +++ b/cmd/node.go @@ -97,7 +97,7 @@ func installNodeLinux() { installCmd = `sudo apt update sudo apt install -y gnupg2 curl software-properties-common curl -o - https://releases.algorand.com/key.pub | sudo tee /etc/apt/trusted.gpg.d/algorand.asc - sudo add-apt-repository "deb [arch=amd64] https://releases.algorand.com/deb/ stable main" + sudo add-apt-repository -y "deb [arch=amd64] https://releases.algorand.com/deb/ stable main" sudo apt update # To get both algorand and the devtools: @@ -106,7 +106,7 @@ func installNodeLinux() { installCmd = `sudo apt-get update sudo apt-get install -y gnupg2 curl software-properties-common curl -o - https://releases.algorand.com/key.pub | sudo tee /etc/apt/trusted.gpg.d/algorand.asc - sudo add-apt-repository "deb [arch=amd64] https://releases.algorand.com/deb/ stable main" + sudo add-apt-repository -y "deb [arch=amd64] https://releases.algorand.com/deb/ stable main" sudo apt-get update # To get both algorand and the devtools: @@ -330,6 +330,7 @@ func startAlgodProcess() { os.Exit(1) } + // Wait for the process to start time.Sleep(5 * time.Second) if isAlgodRunning() {