From 25c0ab6b22961ff996af3469603b2e8814e39026 Mon Sep 17 00:00:00 2001 From: Bitcoin Tools <156422466+bitcoin-tools@users.noreply.github.com> Date: Sat, 5 Oct 2024 16:24:02 -0400 Subject: [PATCH] refactor the if statement --- nodebuilder | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nodebuilder b/nodebuilder index 9f04f3e3d..09a3eb4d5 100755 --- a/nodebuilder +++ b/nodebuilder @@ -1011,8 +1011,9 @@ install_runtime_dependencies_aptget() dependencies=$(curl --fail --silent --show-error --location --retry 5 "${RUNTIME_DEPENDENCIES_URL}") [ -z "${dependencies:-}" ] && throw_error 'The list of dependencies is empty.' printf '%s\n' "${dependencies}" | xargs sudo DEBIAN_FRONTEND=noninteractive apt-get -qq install --assume-yes --no-install-recommends > /dev/null 2>&1 - [ "${TARGET_ARCHITECTURE}" = 'riscv64' ] && + if [ "${TARGET_ARCHITECTURE}" = 'riscv64' ]; then sudo DEBIAN_FRONTEND=noninteractive apt-get -qq install --assume-yes --no-install-recommends libatomic1 > /dev/null 2>&1 + fi } install_runtime_dependencies_darwin()